
/* ---------- site_places.mjs ---------- */

/* ---------- the places (/places/: tools/site_places.mjs) ---------- */
.pl-page { --pl: #2f6fe8; --pl-soft: #e8f1ff; --pl-sky: #eaf4ff; --pl-ground: #cfe7c3; }
.pl-k-town { --pl: #2f6fe8; --pl-soft: #e8f1ff; --pl-sky: #e6f1ff; --pl-ground: #d7e9c8; }
.pl-k-route { --pl: #178a4a; --pl-soft: #e4f8ec; --pl-sky: #eaf6ff; --pl-ground: #c9ebc0; }
.pl-k-forest { --pl: #0d8780; --pl-soft: #dff6f4; --pl-sky: #e3f5ee; --pl-ground: #b6e0c2; }
.pl-k-cave { --pl: #6232d6; --pl-soft: #f0e9ff; --pl-sky: #efe9ff; --pl-ground: #d9cdf5; }
.pl-k-sea { --pl: #1b78c4; --pl-soft: #e2f3ff; --pl-sky: #eef8ff; --pl-ground: #a9dcf7; }
.pl-k-park { --pl: #d45a08; --pl-soft: #fff1e3; --pl-sky: #fff6e8; --pl-ground: #f2dca4; }
.pl-k-building { --pl: #9a6e00; --pl-soft: #fff5cf; --pl-sky: #fff8e2; --pl-ground: #ead9a8; }
.pl-crumb { margin-bottom: 18px; }
.pl-crumb > span:last-child { color: var(--ash); }
.pl-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(26px, 3.4vw, 44px); }
.pl-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 14px; color: var(--pl); font: 800 15.5px/1.3 var(--heb); }
.pl-kind .ic { width: 22px; height: 22px; }
.pl-kind span { color: var(--ash); font-weight: 700; }
.pl-head h1, .pl-hub-head h1 { font-family: var(--heb); font-size: clamp(40px, 5.6vw, 88px); line-height: 1.02; letter-spacing: -.032em; }
.pl-dek { margin-top: 18px; max-width: 820px; color: var(--muted); font-size: clamp(19px, 1.5vw, 23px); line-height: 1.5; font-weight: 500; }
.pl-aka { margin-top: 12px; color: var(--ash); font-size: 15px; font-weight: 600; }
/* the level it suits: a ruler of the whole game, 1 to 100, and this place's stretch of it */
.pl-lv { padding: 20px 24px 18px; border-radius: 24px; background: #fff; box-shadow: var(--lift); border-top: 5px solid var(--pl); }
.pl-lv-t { color: var(--ash); font-size: 14px; font-weight: 700; }
.pl-lv-n { margin-top: 4px; font-size: clamp(44px, 4.2vw, 62px); line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.pl-ruler { position: relative; height: 14px; margin: 18px 0 6px; border-radius: 99px; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(29, 24, 56, .14) calc(25% - 1px) 25%), var(--mist-2); }
.pl-ruler i { position: absolute; inset-block: 0; inset-inline-start: var(--a); width: max(12px, calc(var(--b) - var(--a))); border-radius: 99px; background: var(--pl); box-shadow: 0 0 0 3px #fff, 0 4px 12px color-mix(in srgb, var(--pl) 45%, transparent); }
.pl-gymtick { position: absolute; top: -6px; bottom: -6px; inset-inline-start: var(--g); width: 4px; margin-inline-start: -2px; border-radius: 3px; background: var(--ink); }
.pl-scale { display: flex; justify-content: space-between; color: var(--ash); font: 700 12.5px/1 var(--lat); }
.pl-lv-sub { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.5; font-weight: 600; }
/* the picture: the place itself, or (where there's no photo yet) its Pokémon standing on its ground */
.pl-hero { margin: 0 0 clamp(40px, 5vw, 70px); }
.pl-hero img { width: 100%; height: auto; max-height: 78svh; object-fit: cover; border-radius: var(--r); box-shadow: var(--lift); }
.pl-hero figcaption, .pl-figs figcaption { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--ash); font-size: 13.5px; font-weight: 600; }
.pl-hero figcaption .ic { width: 15px; height: 15px; }
.pl-stage { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 5vw, 80px); min-height: 200px; aspect-ratio: 16 / 4.6; margin: 0 0 clamp(40px, 5vw, 70px); padding: 0 6% clamp(18px, 3vw, 40px); border-radius: var(--r); overflow: hidden;
  background: radial-gradient(120% 60% at 50% 100%, var(--pl-ground) 0 46%, transparent 46.5%), linear-gradient(180deg, #fff 0%, var(--pl-sky) 100%); box-shadow: inset 0 0 0 1px var(--line); }
.pl-st-m { width: clamp(84px, 13vw, 190px); height: clamp(84px, 13vw, 190px); }
.pl-st-m.m1 { width: clamp(70px, 10vw, 150px); height: clamp(70px, 10vw, 150px); }
.pl-st-m.m3 { width: clamp(60px, 8vw, 120px); height: clamp(60px, 8vw, 120px); }
/* the reading column and the facts beside it */
.pl-grid { display: grid; grid-template-columns: minmax(0, 840px) minmax(270px, 340px); justify-content: space-between; gap: clamp(36px, 6vw, 110px); align-items: start; }
.pl-body { font-size: 18.5px; line-height: 1.8; color: #2b2650; }
.pl-body > * + * { margin-top: clamp(48px, 5vw, 70px); }
.pl-sec > * + * { margin-top: 18px; }
.pl-body h2 { font-family: var(--heb); font-size: clamp(27px, 2.4vw, 36px); line-height: 1.2; color: var(--ink); }
.pl-body h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-family: var(--heb); font-size: 22px; line-height: 1.3; color: var(--ink); }
.pl-body h3 small { color: var(--ash); font: 700 14.5px/1.3 var(--heb); }
.pl-body a { color: var(--link); text-underline-offset: 3px; }
.pl-tsec { margin-top: 34px; }
.pl-tsec > * + * { margin-top: 10px; }
.pl-tsub { color: var(--muted); font-size: 16px; }
/* what's in town: a directory, one line each */
.pl-spots { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.pl-spots li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pl-spots .ic { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--pl-soft); color: var(--pl); }
.pl-spots b { display: block; font: 800 18px/1.3 var(--heb); color: var(--ink); }
.pl-spots p { color: var(--muted); font-size: 16px; line-height: 1.6; }
.pl-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 28px; }
.pl-figs figure { margin: 0; }
.pl-figs img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; box-shadow: 0 14px 40px rgba(45, 30, 110, .13); }
.pl-figs figcaption { color: var(--muted); font-size: 15px; font-weight: 500; }
/* the gym */
.pl-gym { padding: 22px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--tc); box-shadow: 0 12px 34px rgba(45, 30, 110, .08); }
.pl-gym > * + * { margin-top: 12px; }
.pl-gym-top { display: flex; align-items: center; gap: 14px; }
.pl-gym-top > .ic { width: 48px; height: 48px; padding: 11px; border-radius: 50%; background: color-mix(in srgb, var(--tc) 18%, #fff); color: var(--ink); }
.pl-gym-top div { flex: 1; display: grid; }
.pl-gym-top b { font: 800 22px/1.2 var(--heb); color: var(--ink); }
.pl-gym-top span { color: var(--ash); font-size: 14.5px; font-weight: 700; }
.pl-gym p { font-size: 17px; }
.pl-gym-tip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 700; color: var(--ink); }
/* types: each in its own colour, a link to the type chart */
.pl-types { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.pl-type { display: inline-block; padding: 3px 10px 3px; border-radius: 99px; background: color-mix(in srgb, var(--tc) 20%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 55%, #fff); color: var(--ink) !important; font: 700 13.5px/1.35 var(--heb); text-decoration: none; white-space: nowrap; }
.pl-type:hover { background: color-mix(in srgb, var(--tc) 34%, #fff); }
/* the Pokémon table */
.pl-tblwrap { border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 34px rgba(45, 30, 110, .07); overflow: hidden; }
.pl-tbl { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.4; }
.pl-tbl th, .pl-tbl td { padding: 6px 14px; text-align: start; vertical-align: middle; }
.pl-tbl thead th { padding-block: 11px; background: var(--mist); color: var(--ash); font: 700 13.5px/1.2 var(--heb); white-space: nowrap; }
.pl-tbl tbody tr + tr { border-top: 1px solid var(--line); }
.pl-tbl tbody tr:hover { background: color-mix(in srgb, var(--pl-soft) 55%, #fff); }
.pl-mon { display: inline-flex; align-items: center; gap: 10px; color: var(--ink) !important; text-decoration: none; font: 800 17px/1.25 var(--heb); }
.pl-mon img { width: 56px; height: 56px; flex: none; object-fit: contain; }
.pl-mon:hover span { text-decoration: underline; text-decoration-color: var(--pl); text-decoration-thickness: 2px; }
.pl-c-lv .num { font-size: 16px; font-weight: 800; }
.pl-lbl { display: none; }
.pl-when { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap; }
.pl-when .ic { width: 18px; height: 18px; color: #e59a00; }
.pl-when.w-night .ic, .pl-when.w-more-night .ic { color: #5b5fd6; }
.pl-when.w-all .ic { color: var(--ash); }
.pl-rar { display: inline-block; padding: 4px 12px; border-radius: 99px; font: 800 14px/1.3 var(--heb); white-space: nowrap; }
.pl-rar.r0 { background: #e4f8ec; color: #156f3d; } .pl-rar.r1 { background: #dff6f4; color: #0b6f69; } .pl-rar.r2 { background: #fff3c7; color: #7f5a00; }
.pl-rar.r3 { background: #ffeadb; color: #b0480a; } .pl-rar.r4 { background: #f0e9ff; color: #5a2dc4; }
.pl-when-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pl-when-ctl button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 99px; border: 1px solid rgba(29, 24, 56, .16); background: #fff; color: var(--ink); font: 700 15px/1 var(--heb); cursor: pointer; }
.pl-when-ctl button .ic { width: 17px; height: 17px; }
.pl-when-ctl button[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pl-now { color: var(--ash); font-size: 14.5px; font-weight: 600; margin-inline-start: 6px; }
.pl-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: 18px; background: var(--mist); color: var(--ink); font-size: 16px; line-height: 1.6; font-weight: 500; }
.pl-note .ic { flex: none; width: 21px; height: 21px; margin-top: 2px; color: var(--pl); }
/* a town's surroundings */
.pl-around { display: grid; gap: 14px; }
.pl-ar { padding: 16px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); border-inline-start: 5px solid var(--pl); }
.pl-ar h3 a { color: var(--ink); text-decoration: none; }
.pl-ar h3 a:hover { text-decoration: underline; }
.pl-ar ul { list-style: none; padding: 0; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pl-ar li a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font: 700 15.5px/1.2 var(--heb); }
.pl-ar li img { width: 48px; height: 48px; object-fit: contain; }
.pl-ar li a:hover span { text-decoration: underline; }
/* fishing */
.pl-fish { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 18px; }
.pl-fish li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-block: 6px; border-bottom: 1px solid var(--line); }
.pl-fish .pl-mon { flex: 1; font-size: 16px; }
.pl-fish .pl-mon img { width: 48px; height: 48px; }
.pl-fish small { flex-basis: 100%; color: var(--ash); font-size: 13.5px; font-weight: 600; padding-inline-start: 58px; }
/* getting there */
.pl-needs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pl-needs li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 99px; background: var(--pl-soft); color: var(--ink); font: 700 15px/1.3 var(--heb); }
.pl-needs .ic { width: 17px; height: 17px; color: var(--pl); }
/* other places: a card each, coloured by its kind, its level on the end */
.pl-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pl-card { display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px 14px 10px 12px; border-radius: 18px; background: #fff; border: 1px solid var(--line); border-inline-start: 5px solid var(--pl); color: var(--ink) !important; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.pl-card:hover { box-shadow: 0 10px 26px rgba(45, 30, 110, .12); border-color: color-mix(in srgb, var(--pl) 40%, var(--line)); border-inline-start-color: var(--pl); }
.pl-card img { width: 48px; height: 48px; flex: none; object-fit: contain; border-radius: 12px; background: var(--pl-soft); }
.pl-card-t { flex: 1; min-width: 0; display: grid; }
.pl-card-t b { font: 800 17px/1.25 var(--heb); }
.pl-card-t small { color: var(--ash); font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.pl-pill { flex: none; padding: 5px 10px; border-radius: 99px; background: var(--pl-soft); color: var(--pl); font-size: 14px; }
.pl-next { counter-reset: nx; }
.pl-back { font-weight: 700; }
.pl-back a { display: inline-flex; align-items: center; gap: 8px; }
.pl-back .ic { width: 20px; height: 20px; }
.pl-aside { position: sticky; top: 100px; display: grid; gap: 24px; justify-items: start; }
.pl-facts { width: 100%; padding: 22px 26px 8px; border-radius: 24px; border-top: 5px solid var(--pl); background: #fff; box-shadow: var(--lift); }
.pl-facts h2 { margin-bottom: 6px; font-family: var(--heb); font-size: 22px; }
.pl-facts dl > div { padding-block: 12px; border-top: 1px solid var(--line); }
.pl-facts dl > div:first-child { border-top: 0; }
.pl-facts dt { color: var(--ash); font-size: 13.5px; font-weight: 700; }
.pl-facts dd { color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.45; }
.pl-aside .play { --h: 66px; --b: 48px; font-size: 18px; }
/* the hub: the map, then every place by kind */
.pl-hub-head { max-width: 1000px; margin-bottom: clamp(26px, 3.4vw, 44px); }
.pl-map { margin: 0 0 clamp(56px, 7vw, 100px); }
.pl-map-in { overflow-x: auto; border-radius: var(--r); box-shadow: var(--lift); background: #eef6ff; -webkit-overflow-scrolling: touch; }
.pl-map-svg { display: block; width: 100%; min-width: 680px; height: auto; max-height: 92svh; font-family: var(--heb); }
.pl-map-svg .m-land { fill: #f3f6ec; }
.pl-map-svg .m-water { fill: #cfeafc; }
.pl-map-svg polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pl-map-svg .m-route { stroke: #8fd3a4; }
.pl-map-svg .m-forest { stroke: #3fae7a; fill: #6cc59a; }
.pl-map-svg rect.m-forest { stroke: #3fae7a; stroke-width: 3; }
.pl-map-svg .m-sea { stroke: #4aa8e6; stroke-dasharray: 16 14; }
.pl-map-svg .m-town { fill: #fff; stroke: #2f6fe8; stroke-width: 4; }
.pl-map-svg .m-town.m-small { stroke-width: 3; stroke: #8aa9ec; }
.pl-map-svg .m-cave { fill: #cdbdf6; stroke: #6c3fe0; stroke-width: 3; }
.pl-map-svg .m-park { fill: #ffe08a; stroke: #e8a20f; stroke-width: 3; }
.pl-map-svg rect.m-route { fill: #dff3e2; stroke: #8fd3a4; stroke-width: 3; }
.pl-map-svg .m-name { font-size: 22px; font-weight: 800; fill: #1d1838; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 7px; stroke-linejoin: round; }
.pl-map-svg .m-sub { font-size: 18px; font-weight: 700; fill: #3d3860; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 6px; stroke-linejoin: round; }
.pl-map-svg .m-no circle { fill: #fff; stroke: #178a4a; stroke-width: 3; }
.pl-map-svg .m-no text { font: 800 16px var(--lat); fill: #156f3d; text-anchor: middle; }
.pl-map-svg .m-place { cursor: pointer; }
.pl-map-svg .m-place:hover > *, .pl-map-svg .m-place:focus-visible > * { filter: brightness(.92) saturate(1.3); }
.pl-map-svg .m-place:hover .m-name, .pl-map-svg .m-place:focus-visible .m-name { fill: #2f6fe8; }
.pl-map-svg .m-place:focus-visible { outline: none; }
.pl-map-svg .m-place:focus-visible rect, .pl-map-svg .m-place:focus-visible polyline, .pl-map-svg .m-place:focus-visible circle { stroke: var(--sea); }
.pl-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 14px; color: var(--muted); font-size: 15px; font-weight: 600; }
.pl-legend span::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-inline-end: 7px; vertical-align: -2px; border-radius: 4px; }
.pl-legend .lg-town::before { background: #fff; box-shadow: inset 0 0 0 3px #2f6fe8; }
.pl-legend .lg-route::before { background: #8fd3a4; }
.pl-legend .lg-forest::before { background: #6cc59a; }
.pl-legend .lg-cave::before { background: #cdbdf6; box-shadow: inset 0 0 0 2px #6c3fe0; }
.pl-legend .lg-park::before { background: #ffe08a; box-shadow: inset 0 0 0 2px #e8a20f; }
.pl-legend .lg-sea::before { background: #cfeafc; box-shadow: inset 0 0 0 2px #7cc3f0; }
.pl-legend .pl-legend-n { color: var(--ash); }
.pl-legend .pl-legend-n::before { display: none; }
.pl-places > h2, .pl-hub-how h2 { font-family: var(--heb); font-size: clamp(34px, 4vw, 58px); line-height: 1.05; letter-spacing: -.025em; }
.pl-places-lead { margin-top: 14px; max-width: 760px; color: var(--muted); font-size: clamp(17px, 1.3vw, 20px); }
.pl-group { margin-top: clamp(36px, 4vw, 56px); }
.pl-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.pl-group-head h3 { font-family: var(--heb); font-size: clamp(24px, 2.2vw, 32px); }
.pl-group-head p { color: var(--muted); font-size: 16px; }
.pl-list { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.pl-hub-how { margin-top: clamp(64px, 8vw, 110px); max-width: 860px; font-size: 18.5px; line-height: 1.8; color: #2b2650; }
.pl-hub-how > * + * { margin-top: 16px; }
.pl-hub-how a { color: var(--link); }
@media (max-width: 1100px) {
  .pl-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 48px; }
}
@media (max-width: 900px) {
  .pl-head { grid-template-columns: 1fr; align-items: start; }
  .pl-grid { grid-template-columns: 1fr; }
  .pl-aside { position: static; order: -1; }
  .pl-aside .play { display: none; }
}
@media (max-width: 720px) {
  .pl-body { font-size: 17.5px; line-height: 1.75; }
  .pl-stage { aspect-ratio: 16 / 7; min-height: 160px; }
  .pl-hero { margin-inline: calc(var(--pad) * -1); }
  .pl-hero img { border-radius: 0; box-shadow: none; }
  .pl-hero figcaption { padding-inline: var(--pad); }
  /* the table as a list: the Pokémon and how common it is, then its types, levels and hours */
  .pl-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pl-tbl, .pl-tbl tbody { display: block; }
  .pl-tbl tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; }
  .pl-tbl th, .pl-tbl td { padding: 0; }
  .pl-tbl th[scope='row'] { flex: 1 1 60%; order: 1; }
  .pl-tbl .pl-c-rar { order: 2; }
  .pl-tbl .pl-c-type { order: 3; flex-basis: 100%; padding-inline-start: 66px; }
  .pl-tbl .pl-c-lv { order: 4; padding-inline-start: 66px; }
  .pl-tbl .pl-c-when { order: 5; }
  .pl-lbl { display: inline; color: var(--ash); font-size: 14px; font-weight: 700; }
  .pl-when { white-space: normal; font-size: 14px; }
  .pl-cards, .pl-list { grid-template-columns: 1fr; }
  .pl-spots li { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .pl-spots .ic { width: 40px; height: 40px; padding: 9px; }
}

/* ---------- site_dex.mjs ---------- */

/* ---------- the Pokédex (tools/site_dex.mjs) ---------- */
.dx-page { --c1: #a8a77a; --c2: var(--c1); }
.dx-page .ic { width: 1.1em; height: 1.1em; }
.dx-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: 15px; font-weight: 700; color: var(--ash); }
.dx-crumb a { color: var(--ink); text-decoration: none; }
.dx-crumb a:hover { text-decoration: underline; }
.dx-ty { display: inline-flex; align-items: center; padding: 4px 13px; border-radius: 999px; background: var(--tc); font: 700 14.5px/1.35 var(--heb); text-decoration: none; white-space: nowrap; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); transition: filter .2s, transform .2s; }
.dx-ty.lt { color: var(--ink); }
.dx-ty.dk { color: #fff; }
a.dx-ty:hover { filter: brightness(1.07) saturate(1.1); transform: translateY(-1px); }
.dx-pills { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.dx-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font: 700 13px/1.3 var(--heb); background: var(--mist-2); color: var(--ink); }
.dx-badge.leg { background: linear-gradient(135deg, #ffe58a, #ffb23f); color: #4a2e00; }
.dx-badge.hid { background: #efe4ff; color: #5a2fb8; }
.dx-badge.soon { background: #f1eff7; color: var(--muted); font-weight: 600; }

/* a Pokémon's page: the hero */
.dx-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: clamp(24px, 4vw, 70px); align-items: center; padding: clamp(26px, 3.4vw, 50px); border-radius: var(--r); margin-bottom: clamp(34px, 4.5vw, 64px);
  background: radial-gradient(120% 90% at 14% 50%, color-mix(in srgb, var(--c1) 30%, #fff) 0%, rgba(255, 255, 255, 0) 62%), linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--c2) 14%, #fff) 100%);
  box-shadow: var(--lift); border: 1px solid color-mix(in srgb, var(--c1) 22%, #fff); }
.dx-kick { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--ash); font: 700 15px/1.3 var(--heb); margin-bottom: 8px; }
.dx-kick .num { font-size: 22px; color: var(--ink); opacity: .55; }
.dx-hero h1 { font-family: var(--heb); font-size: clamp(48px, 7vw, 104px); line-height: .98; letter-spacing: -.035em; }
.dx-en { margin-top: 8px; font: 700 clamp(20px, 2vw, 28px)/1.2 var(--lat); color: var(--muted); text-align: right; }
.dx-hero .dx-pills { margin-top: 16px; }
.dx-hero .dx-ty { font-size: 16px; padding: 6px 16px; }
.dx-aka { margin-top: 14px; font-size: 15px; color: var(--muted); }
.dx-aka > span:first-child { font-weight: 700; color: var(--ash); }
.dx-lead { margin-top: 18px; max-width: 640px; font-size: clamp(17.5px, 1.35vw, 20.5px); line-height: 1.65; color: #2b2650; font-weight: 500; }
.dx-art { position: relative; margin: 0; display: grid; place-items: end center; min-height: clamp(220px, 26vw, 360px); }
.dx-art-img { position: relative; z-index: 1; width: auto; height: auto; max-width: 92%; max-height: clamp(200px, 24vw, 330px); min-height: clamp(150px, 17vw, 240px); object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 14px 18px rgba(45, 30, 110, .18)); }
.dx-plat { position: absolute; inset: auto 8% 4px; height: 18%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c1) 55%, #fff), color-mix(in srgb, var(--c1) 18%, #fff) 70%, rgba(255, 255, 255, 0)); }

/* the page's two columns */
.dx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 350px); gap: clamp(32px, 5vw, 90px); align-items: start; }
.dx-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(44px, 5vw, 70px); min-width: 0; }
.dx-sec { min-width: 0; }
.dx-sec h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-family: var(--heb); font-size: clamp(26px, 2.4vw, 36px); line-height: 1.15; }
.dx-sec h2 .ic { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 12px; background: color-mix(in srgb, var(--c1) 22%, #fff); color: var(--ink); }
.dx-sec h3 { margin: 26px 0 12px; font-family: var(--heb); font-size: 21px; }
.dx-sec p { color: #2b2650; }
.dx-sec > p + p { margin-top: 12px; }
.dx-note, .dx-tip { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 18px; border-radius: 16px; background: var(--mist); font-size: 16.5px; line-height: 1.6; }
.dx-note .ic, .dx-tip .ic { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--ember); }
.dx-tip { background: color-mix(in srgb, var(--c1) 12%, #fff); border: 1px solid color-mix(in srgb, var(--c1) 26%, #fff); font-weight: 600; }
.dx-more-link { margin-top: 16px; font-weight: 700; }
.dx-more-link a, .dx-sec p a { color: var(--link); }
.dx-quote { margin: 0; padding: 22px 26px; border-radius: 22px; background: var(--mist); border-inline-start: 5px solid var(--c1); }
.dx-quote p { font-size: clamp(18.5px, 1.5vw, 21px); line-height: 1.7; font-weight: 500; color: var(--ink); }
.dx-quote footer { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--ash); }

/* where */
.dx-places { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.dx-place { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(45, 30, 110, .06); }
.dx-place-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--c1) 20%, #fff); }
.dx-place-ic .ic { width: 20px; height: 20px; }
.dx-place b { display: block; font: 700 17px/1.3 var(--heb); }
.dx-place b a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--c1) 70%, var(--ink)); text-underline-offset: 4px; }
.dx-place-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; color: var(--muted); font-size: 15px; }
.dx-when { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.dx-when .ic { width: 14px; height: 14px; }
.dx-when.night { background: #2f2a5a; color: #fff; }
.dx-when.day { background: #fff1c2; color: #6b4a00; }
.dx-ways { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dx-way { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 16px; background: var(--mist); font-size: 16.5px; line-height: 1.55; }
.dx-way .ic { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--ember); }

/* the family */
.dx-evo { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 10px 14px; margin-top: 20px; }
.dx-evo-stage { display: flex; flex-wrap: wrap; gap: 10px; }
.dx-evo-stage.many { max-width: 100%; }
.dx-evo-arrow { color: var(--ash); }
.dx-evo-arrow .ic { width: 26px; height: 26px; }
.dx-evo-node { display: grid; justify-items: center; gap: 2px; min-width: 128px; padding: 12px 12px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); text-align: center; transition: transform .2s, box-shadow .2s; }
a.dx-evo-node:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(45, 30, 110, .12); }
.dx-evo-node.on { border: 2px solid var(--c1); box-shadow: 0 10px 26px color-mix(in srgb, var(--c1) 30%, transparent); }
.dx-evo-pic { display: grid; place-items: center; width: 96px; height: 88px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--tc) 30%, #fff), rgba(255, 255, 255, 0)); }
.dx-evo-pic img { max-width: 92px; max-height: 84px; width: auto; height: auto; image-rendering: pixelated; }
.dx-evo-node b { font: 700 16.5px/1.25 var(--heb); }
.dx-evo-num { font: 700 12.5px/1 var(--lat); color: var(--ash); }
.dx-evo-how { margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: var(--mist); font-size: 13.5px; font-weight: 700; color: var(--muted); }

/* what hurts it */
.dx-mults { display: grid; gap: 10px; margin-top: 18px; }
.dx-mult { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.dx-mult dt { display: flex; align-items: baseline; gap: 10px; font-weight: 700; color: var(--muted); font-size: 15.5px; }
.dx-mult dt .num { font-size: 21px; color: var(--ink); min-width: 32px; }
.dx-mult dd { display: flex; flex-wrap: wrap; gap: 6px; }
.dx-mult.m4 { background: #fff0ef; border-color: #ffd2cd; }
.dx-mult.m2 { background: #fff7f1; border-color: #ffe2cf; }
.dx-mult.m05, .dx-mult.m025 { background: #f1fbf5; border-color: #cdeedb; }
.dx-mult.m0 { background: #f3f1fb; border-color: #dcd6f3; }
.dx-off { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dx-off li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 16.5px; }

/* stats */
.dx-stats { display: grid; gap: 8px; margin-top: 18px; max-width: 640px; }
.dx-stat { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; align-items: center; }
.dx-stat dt { font-weight: 600; color: var(--muted); font-size: 16px; }
.dx-stat dd { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: center; }
.dx-stat dd i { display: block; height: 12px; border-radius: 99px; background: var(--mist-2); overflow: hidden; }
.dx-stat dd u { display: block; height: 100%; border-radius: 99px; }
.dx-stat .num { font-size: 18px; text-align: left; }
.dx-stat.total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.dx-stat.total dt { color: var(--ink); font-weight: 800; }

/* abilities and mega */
.dx-abs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dx-ab { padding: 14px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.dx-ab.off { background: #fbfaff; }
.dx-ab-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 4px; }
.dx-ab-h b { font: 800 18px/1.3 var(--heb); }
.dx-ab-en { font: 600 14px/1 var(--lat); color: var(--ash); }
.dx-ab p { font-size: 16.5px; line-height: 1.55; }
.dx-megas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-bottom: 14px; }
.dx-mega { display: grid; gap: 6px; padding: 16px 18px; border-radius: 20px; background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--c1) 16%, #fff)); border: 1px solid color-mix(in srgb, var(--c1) 30%, #fff); }
.dx-mega > b { font: 800 20px/1.25 var(--heb); }
.dx-mega-en { font: 600 14px/1 var(--lat); color: var(--ash); text-align: right; }
.dx-mega-f { font-size: 15px; color: var(--muted); }

/* moves */
.dx-table { margin-top: 18px; overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.dx-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.dx-table th { position: sticky; top: 0; padding: 12px 14px; text-align: right; font: 700 14px/1.2 var(--heb); color: var(--ash); background: var(--mist); }
.dx-table td { padding: 10px 14px; border-top: 1px solid var(--line); white-space: nowrap; }
.dx-table td:first-child { font-weight: 700; color: var(--muted); }
.dx-table td:nth-child(2) { font-weight: 700; font-family: var(--lat); }
.dx-table .dx-ty { font-size: 13px; padding: 2px 10px; }
.dx-table tbody tr:hover { background: #fbfaff; }

/* the side: the facts and the way in */
.dx-aside { position: sticky; top: 96px; display: grid; gap: 22px; }
.dx-facts { padding: 22px 24px 8px; border-radius: 24px; background: #fff; box-shadow: var(--lift); border-top: 5px solid var(--c1); }
.dx-facts h2 { font-family: var(--heb); font-size: 22px; margin-bottom: 4px; }
.dx-facts dl > div { padding-block: 11px; border-top: 1px solid var(--line); }
.dx-facts dl > div:first-child { border-top: 0; }
.dx-facts dt { color: var(--ash); font-size: 13.5px; font-weight: 700; }
.dx-facts dd { color: var(--ink); font-size: 16.5px; font-weight: 700; line-height: 1.45; }
.dx-facts dd small { display: block; color: var(--ash); font-size: 13px; font-weight: 600; }
.dx-facts .dx-pills { margin-top: 2px; }
.dx-cta { display: grid; justify-items: center; gap: 10px; padding: 18px 20px 22px; border-radius: 24px; text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 18%, #fff), #fff); border: 1px solid color-mix(in srgb, var(--c1) 26%, #fff); }
.dx-cta-mon { width: 120px; height: 110px; }
.dx-cta p { font: 800 19px/1.3 var(--heb); }
.dx-cta .play { --h: 62px; --b: 46px; font-size: 18px; }

/* next and back, and more of its type */
.dx-steps { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; margin-top: clamp(56px, 7vw, 96px); padding-top: 26px; border-top: 1px solid var(--line); }
.dx-step { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 20px; text-decoration: none; color: var(--ink); background: var(--mist); transition: background .2s, transform .2s; }
.dx-step:hover { background: var(--mist-2); transform: translateY(-2px); }
.dx-step.next { justify-self: end; }
.dx-step .ic { width: 22px; height: 22px; color: var(--ash); flex: none; }
.dx-step-pic { display: grid; place-items: center; width: 56px; height: 52px; }
.dx-step-pic img { max-width: 56px; max-height: 52px; width: auto; height: auto; image-rendering: pixelated; }
.dx-step .num { display: block; font-size: 13px; color: var(--ash); }
.dx-step b { font: 700 17px/1.2 var(--heb); }
.dx-step.none { visibility: hidden; }
.dx-all { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(29, 24, 56, .16); text-decoration: none; color: var(--ink); font-weight: 700; white-space: nowrap; }
.dx-all:hover { background: var(--mist); }
.dx-moretype { margin-top: clamp(48px, 6vw, 80px); }
.dx-minis { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.dx-mini { display: grid; justify-items: center; gap: 2px; padding: 14px 10px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); text-align: center; transition: transform .2s, box-shadow .2s; }
.dx-mini:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(45, 30, 110, .12); }
.dx-mini-pic { display: grid; place-items: center; height: 84px; }
.dx-mini-pic img { max-width: 92px; max-height: 84px; width: auto; height: auto; image-rendering: pixelated; }
.dx-mini-num { font-size: 12.5px; color: var(--ash); }
.dx-mini b { font: 700 16.5px/1.25 var(--heb); }
.dx-mini-en { font: 600 13px/1.2 var(--lat); color: var(--ash); }

/* the hub */
.dx-hub-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(26px, 3.5vw, 44px); }
.dx-hub-head h1 { font-family: var(--heb); font-size: clamp(46px, 6.6vw, 96px); line-height: .98; letter-spacing: -.035em; }
.dx-hub-lead { margin-top: 18px; max-width: 760px; color: var(--muted); font-size: clamp(17px, 1.4vw, 20.5px); line-height: 1.65; }
.dx-hub-mons { display: flex; align-items: end; gap: 4px; }
.dx-hub-mon { width: clamp(58px, 6vw, 92px); height: clamp(58px, 6vw, 92px); }
.dx-filter { position: sticky; top: 72px; z-index: 5; display: grid; gap: 12px; margin-inline: calc(var(--pad) * -1); padding: 14px var(--pad); background: rgba(255, 255, 255, .94); border-block: 1px solid var(--line); }
.dx-search { display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 0 16px; height: 52px; border-radius: 999px; background: #fff; border: 1.5px solid rgba(29, 24, 56, .18); }
.dx-search:focus-within { border-color: var(--sea); box-shadow: 0 0 0 4px rgba(31, 168, 158, .15); }
.dx-search .ic { width: 20px; height: 20px; color: var(--ash); }
.dx-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 500 17px/1 'Heebo', sans-serif; color: var(--ink); }
.dx-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.dx-chip { flex: none; padding: 7px 14px; border-radius: 999px; border: 1.5px solid transparent; background: color-mix(in srgb, var(--tc, #8a8fa6) 16%, #fff); color: var(--ink); font: 700 14.5px/1.2 var(--heb); cursor: pointer; transition: background .2s, color .2s; }
.dx-chip:hover { background: color-mix(in srgb, var(--tc, #8a8fa6) 30%, #fff); }
.dx-chip.on { background: var(--tc, var(--ink)); color: #fff; }
.dx-chip.on.lt { color: var(--ink); }
.dx-chip[data-type=""].on { background: var(--ink); color: #fff; }
.dx-count { font-size: 14.5px; font-weight: 700; color: var(--ash); }
.dx-cards { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.dx-card a { display: grid; justify-items: center; gap: 3px; height: 100%; padding: 14px 10px 16px; border-radius: 22px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; }
.dx-card a:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(45, 30, 110, .13); border-color: color-mix(in srgb, var(--ink) 18%, transparent); }
.dx-card-pic { display: grid; place-items: center; width: 100%; height: 104px; margin-bottom: 4px; border-radius: 16px; background: radial-gradient(60% 70% at 50% 62%, color-mix(in srgb, var(--tc) 26%, #fff), #fff 78%); }
.dx-card-pic img { max-width: 112px; max-height: 96px; width: auto; height: auto; image-rendering: pixelated; }
.dx-card-num { font-size: 13px; color: var(--ash); }
.dx-card b { font: 800 18px/1.2 var(--heb); }
.dx-card-en { font: 600 13.5px/1.2 var(--lat); color: var(--ash); }
.dx-card .dx-pills { justify-content: center; margin-top: 6px; }
.dx-card .dx-ty { font-size: 12.5px; padding: 2px 9px; }
.dx-empty { margin-top: 30px; padding: 22px; border-radius: 20px; background: var(--mist); text-align: center; font-weight: 600; }
.dx-hub-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px); margin-top: clamp(60px, 7vw, 100px); }
.dx-hub-info .dx-sec h2 { font-size: clamp(22px, 1.9vw, 28px); }
.dx-hub-info .dx-sec h2 .ic { background: var(--mist-2); }
.dx-hub-cta { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: clamp(56px, 7vw, 96px); padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: linear-gradient(120deg, #fff4e8, #ffe4ef 55%, #efe8ff); }
.dx-hub-cta h2 { font-family: var(--heb); font-size: clamp(28px, 3vw, 44px); line-height: 1.1; }
.dx-hub-cta p { margin-top: 6px; color: var(--muted); font-size: 18px; }

@media (max-width: 1100px) {
  .dx-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
  .dx-minis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dx-hero { grid-template-columns: 1fr; }
  .dx-art { order: -1; min-height: 0; }
  .dx-grid { grid-template-columns: 1fr; }
  .dx-aside { position: static; order: -1; }
  .dx-facts dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; }
  .dx-facts dl > div:nth-child(2) { border-top: 0; }
  .dx-cta { display: none; }
  .dx-hub-info { grid-template-columns: 1fr; }
  .dx-filter { top: 64px; }
}
@media (max-width: 640px) {
  .dx-hero { padding: 22px 18px 26px; border-radius: 22px; }
  .dx-hero h1 { font-size: clamp(40px, 12vw, 60px); }
  .dx-art-img { max-height: 210px; min-height: 140px; }
  .dx-mult { grid-template-columns: 1fr; gap: 8px; }
  .dx-stat { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; }
  .dx-stat dt { font-size: 15px; }
  .dx-evo-node { min-width: 0; width: calc(50% - 5px); }
  .dx-evo-stage { flex: 1 1 100%; }
  .dx-evo-stage:not(.many) { justify-content: center; }
  .dx-evo-arrow { flex: 1 1 100%; display: flex; justify-content: center; }
  .dx-evo-arrow .ic { transform: rotate(-90deg); }
  .dx-steps { grid-template-columns: 1fr 1fr; }
  .dx-all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .dx-step b { font-size: 15px; }
  .dx-step-pic { display: none; }
  .dx-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dx-card-pic { height: 88px; }
  .dx-card-pic img { max-height: 80px; }
  .dx-hub-mons { display: none; }
  .dx-filter { position: static; }
  .dx-table table { font-size: 15px; }
  .dx-table td, .dx-table th { padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .dx-card a, .dx-mini, .dx-evo-node, .dx-step, .dx-ty { transition: none; }
}

/* ---------- site_guides.mjs ---------- */
/* ---------- the guides and the download page (tools/site_guides.mjs) ---------- */
/* the forum's guides on the hub: a card per board, the guides in it as rows */
.gd-forum { margin-top: clamp(44px, 6vw, 80px); }
.gd-forum-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 30px; margin-bottom: clamp(20px, 2.6vw, 32px); }
.gd-forum-head h2 { font-family: var(--heb); font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; }
.gd-forum-head p { margin-top: 10px; max-width: 640px; color: var(--muted); font-size: clamp(16px, 1.2vw, 19px); }
.gd-forum-head .btn { height: 54px; padding-inline: 22px; }
.gd-forum-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(14px, 1.6vw, 22px); align-items: start; }
.gd-fg { background: #fff; border-radius: 22px; padding: 18px clamp(16px, 1.6vw, 22px) 10px; box-shadow: 0 8px 24px rgba(45, 30, 110, .07); }
.gd-fg h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-family: var(--heb); font-size: clamp(19px, 1.5vw, 23px); padding-bottom: 10px; border-bottom: 2px solid var(--mist-2); }
.gd-fg h3 a { text-decoration: none; color: var(--ink); }
.gd-fg h3 a:hover { color: var(--link); }
.gd-fg h3 span { font: 600 13.5px/1 'Heebo', sans-serif; color: var(--ash); white-space: nowrap; }
.gd-fg ul { list-style: none; padding: 0; margin: 0; }
.gd-fg li + li { border-top: 1px solid var(--line); }
.gd-fg li a { display: grid; gap: 4px; padding: 13px 2px; text-decoration: none; color: var(--ink); }
.gd-fg li a b { font-family: var(--heb); font-weight: 700; font-size: 17.5px; line-height: 1.3; }
.gd-fg li a:hover b { color: var(--link); }
.gd-fg li a span { color: var(--muted); font-size: 15px; line-height: 1.55; }
.gd-fg li a small { color: var(--ash); font-size: 13.5px; }
.gd-forum-none { color: var(--muted); }
.gd-page { --ac: #ee3b32; }
.gd-head { max-width: 1080px; margin-bottom: clamp(28px, 3.6vw, 48px); }
.gd-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 18px; font-size: 15px; font-weight: 700; color: var(--ash); }
.gd-crumb a { color: var(--ink); text-decoration: none; }
.gd-crumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.gd-crumb .ic { width: 15px; height: 15px; color: var(--ash); }
.gd-head h1 { font-family: var(--heb); font-size: clamp(40px, 5.8vw, 90px); line-height: 1.02; letter-spacing: -.034em; }
.gd-dek { margin-top: 18px; max-width: 860px; color: var(--muted); font-size: clamp(19px, 1.5vw, 23px); line-height: 1.5; font-weight: 500; }
.gd-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; color: var(--ash); font-size: 14.5px; font-weight: 600; }
.gd-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.gd-meta .ic { width: 17px; height: 17px; color: var(--ac); }
.gd-hero { margin: 0 0 clamp(36px, 4.6vw, 64px); }
.gd-hero img, .gd-fig img { width: 100%; height: auto; border-radius: var(--r); box-shadow: var(--lift); }
.gd-hero img { max-height: 72svh; object-fit: cover; }
.gd-fig { margin: 26px 0 0; }
.gd-fig img { border-radius: 20px; max-height: 480px; object-fit: cover; }
.gd-hero figcaption, .gd-fig figcaption { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.gd-hero figcaption .ic, .gd-fig figcaption .ic { width: 16px; height: 16px; color: var(--ash); }

/* the body beside its contents */
.gd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); gap: clamp(32px, 5vw, 90px); align-items: start; }
.gd-body { min-width: 0; font-size: 18.5px; line-height: 1.8; color: #2b2650; }
.gd-body > section { scroll-margin-top: 96px; }
.gd-body > section + section { margin-top: clamp(52px, 6.4vw, 88px); }
.gd-body h2 { font-family: var(--heb); font-size: clamp(28px, 2.7vw, 40px); line-height: 1.15; letter-spacing: -.022em; color: var(--ink); margin-bottom: 16px; }
.gd-body h3 { font-family: var(--heb); font-size: 21px; line-height: 1.3; color: var(--ink); }
.gd-sec > h2[data-n] { display: flex; align-items: flex-start; gap: 14px; }
.gd-sec > h2[data-n]::before { content: attr(data-n); flex: none; display: grid; place-items: center; width: 1.45em; height: 1.45em; margin-top: -.08em; border-radius: 50%; background: var(--ac); color: #fff; font: 900 .78em/1 var(--lat); box-shadow: 0 4px 0 rgba(0, 0, 0, .14); }
.gd-prose p + p, .gd-prose p + ul, .gd-prose ul + p { margin-top: 14px; }
.gd-prose ul { display: grid; gap: 10px; padding-inline-start: 22px; }
.gd-prose li::marker { color: var(--ac); }
.gd-prose b { color: var(--ink); }
.gd-body p a:not([class]), .gd-body li a:not([class]), .gd-body dd a:not([class]), .gd-wide-secs p a:not([class]), .gd-help a, .gd-more a, .gd-tip a, .gd-note a { color: var(--link); text-underline-offset: 3px; }
.gd-sub { margin: 26px 0 12px; }
.gd-tip { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 16px 20px; border-radius: 18px; background: var(--mist); color: var(--ink); font-size: 17px; line-height: 1.6; font-weight: 600; }
.gd-tip .ic, .gd-note .ic { flex: none; width: 20px; height: 20px; margin-top: 4px; color: var(--ac); }
.gd-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.gd-aka { margin-top: 12px; color: var(--ash); font-size: 14.5px; }
.gd-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.gd-aside { position: sticky; top: 96px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; justify-items: start; min-width: 0; }
.gd-toc { width: 100%; padding: 18px 18px 14px; border-radius: 22px; background: #fff; box-shadow: var(--lift); border-top: 5px solid var(--ac); }
.gd-toc-t { margin: 0 6px 8px; font: 800 17px/1.3 var(--heb); color: var(--ink); }
.gd-toc ol { list-style: none; padding: 0; display: grid; gap: 1px; max-height: calc(100svh - 300px); overflow-y: auto; }
.gd-toc a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.35; }
.gd-toc a:hover { background: var(--mist); color: var(--ink); }
.gd-aside .play { --h: 64px; --b: 46px; font-size: 18px; }
.gd-side-more { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 18px; border-radius: 20px; background: var(--mist); color: var(--ink); text-decoration: none; font-size: 15px; }
.gd-side-more b { display: block; font: 800 17px/1.3 var(--heb); }
.gd-side-more .ic { width: 26px; height: 26px; color: var(--ac); flex: none; }

/* type pills, Pokémon chips */
.gd-tys { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.gd-ty { display: inline-flex; align-items: center; justify-content: center; padding: 3px 12px; border-radius: 999px; background: var(--tc); color: var(--tt, #fff); font: 700 14.5px/1.45 var(--heb); text-decoration: none; white-space: nowrap; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14); }
.gd-ty[href]:hover { filter: brightness(1.06) saturate(1.1); }
.gd-mons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gd-mon { display: inline-flex; align-items: center; gap: 6px; padding-block: 3px; padding-inline: 6px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--mist-2); color: var(--ink); text-decoration: none; line-height: 1.25; transition: border-color .2s, box-shadow .2s; }
.gd-mon:hover { border-color: var(--ac); box-shadow: 0 6px 18px rgba(45, 30, 110, .1); }
.gd-mon .spr { width: 48px; height: 48px; flex: none; }
.gd-mon b { display: block; font-size: 15.5px; font-weight: 700; }
.gd-mon small { display: block; color: var(--ash); font-size: 13px; font-weight: 600; }
.gd-none { color: var(--ash); font-size: 15px; }
.gd-more { margin-top: 12px; color: var(--muted); font-size: 15.5px; }

/* the type chart */
.gd-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--muted); }
.gd-legend span { display: inline-flex; align-items: center; gap: 8px; }
.gd-legend i { display: inline-grid; place-items: center; min-width: 38px; height: 28px; border-radius: 8px; font: 800 14px/1 var(--lat); font-style: normal; }
.gd-chartbox { position: relative; margin-top: 16px; overflow-x: auto; border-radius: 24px; background: #fff; box-shadow: var(--lift); padding: 12px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.gd-chartbox:focus-visible { outline-offset: 4px; }
.gd-chart { border-collapse: separate; border-spacing: 3px; margin-inline: auto; }
.gd-chart th, .gd-chart td { padding: 0; }
.gd-chart thead th { vertical-align: bottom; padding-bottom: 4px; }
.gd-chart .gd-ty-s { min-width: 50px; padding: 3px 6px; font-size: 12.5px; }
.gd-chart tbody th { position: sticky; inset-inline-start: 0; z-index: 2; background: #fff; padding-inline-end: 6px; text-align: start; }
.gd-chart tbody th .gd-ty-s { min-width: 64px; }
.gd-chart td { min-width: 50px; height: 38px; border-radius: 9px; text-align: center; font: 800 14.5px/1 var(--lat); direction: ltr; unicode-bidi: isolate; cursor: default; transition: box-shadow .12s; }
.gd-legend i, .gd-cr-k { direction: ltr; unicode-bidi: isolate; }
.gd-wide-secs { margin-bottom: clamp(52px, 6.4vw, 88px); font-size: 18.5px; line-height: 1.8; color: #2b2650; }
.gd-wide-secs > section { scroll-margin-top: 96px; }
.gd-wide-secs h2 { font-family: var(--heb); font-size: clamp(28px, 2.7vw, 40px); line-height: 1.15; letter-spacing: -.022em; color: var(--ink); margin-bottom: 16px; }
.gd-wide-secs .gd-prose { max-width: 900px; }
.gd-chart .m2, .gd-legend .m2 { background: #d4f4df; color: #0f6b38; }
.gd-chart .mh, .gd-legend .mh { background: #ffe1dc; color: #b42318; }
.gd-chart .m0, .gd-legend .m0 { background: #2b2650; color: #fff; }
.gd-chart .m1, .gd-legend .m1 { background: #f6f4ff; }
.gd-chart td.gd-hl { box-shadow: inset 0 0 0 2px rgba(29, 24, 56, .55); }
.gd-chart th.gd-hl .gd-ty-s { outline: 2px solid var(--ink); outline-offset: 1px; }
.gd-corner { position: sticky; inset-inline-start: 0; z-index: 3; background: #fff; }
.gd-corner span { display: flex; align-items: center; justify-content: flex-start; gap: 3px; font: 700 12px/1.2 var(--heb); color: var(--ash); }
.gd-corner .ic { width: 13px; height: 13px; }

/* the calculator */
.gd-calc { margin-top: 18px; padding: clamp(18px, 2.4vw, 28px); border-radius: 26px; background: #fff; box-shadow: var(--lift); }
.gd-calc-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-tb { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; border: 2px solid transparent; background: #fff; background: color-mix(in srgb, var(--tc) 14%, #fff); color: var(--ink); font: 700 15.5px/1.2 var(--heb); cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.gd-tb::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--tc); flex: none; }
.gd-tb:hover { border-color: var(--tc); }
.gd-tb[aria-pressed="true"] { background: var(--tc); color: var(--tt); box-shadow: 0 4px 0 rgba(0, 0, 0, .18); transform: translateY(-2px); }
.gd-tb[aria-pressed="true"]::before { background: currentColor; }
.gd-calc-sel { margin-top: 20px; font: 700 19px/1.4 var(--heb); color: var(--ink); }
.gd-calc-out { display: grid; gap: 10px; margin-top: 12px; }
.gd-cr { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--mist); }
.gd-cr b { display: block; margin-bottom: 6px; font-size: 15.5px; color: var(--ink); }
.gd-cr-k { display: grid; place-items: center; height: 46px; border-radius: 12px; font-size: 19px; }
.gd-cr.r4 .gd-cr-k { background: #0f6b38; color: #fff; }
.gd-cr.r2 .gd-cr-k { background: #d4f4df; color: #0f6b38; }
.gd-cr.rh .gd-cr-k { background: #ffe1dc; color: #b42318; }
.gd-cr.rq .gd-cr-k { background: #b42318; color: #fff; }
.gd-cr.r0 .gd-cr-k { background: #2b2650; color: #fff; }
.gd-cr-mons { padding: 12px 14px; border-radius: 16px; border: 1px dashed var(--mist-2); }
.gd-cr-mons b { display: block; margin-bottom: 6px; font-size: 15.5px; color: var(--ink); }
.gd-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 600; }
.gd-links a { color: var(--link); }

/* a section for each type */
.gd-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gd-jump .gd-ty { padding: 6px 14px; font-size: 15.5px; }
.gd-body > .gd-type { margin-top: 22px; }
.gd-body > .gd-type + .gd-sec { margin-top: clamp(52px, 6.4vw, 88px); }
.gd-type { scroll-margin-top: 96px; padding: clamp(20px, 2.6vw, 32px); border-radius: 26px; background: #fff; box-shadow: 0 10px 30px rgba(45, 30, 110, .08); border-inline-start: 8px solid var(--tc); }
.gd-type h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 2.2vw, 32px); margin-bottom: 10px; }
.gd-type h2::before { content: ''; flex: none; width: .7em; height: .7em; border-radius: 50%; background: var(--tc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tc) 22%, transparent); }
.gd-sum { color: #3d3860; font-size: 17.5px; line-height: 1.75; }
.gd-tygrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.gd-tybox { padding: 14px 18px 10px; border-radius: 18px; background: var(--mist); }
.gd-tybox h3 { font-size: 17px; margin-bottom: 4px; }
.gd-tybox dl > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: baseline; padding-block: 8px; border-top: 1px solid var(--line); }
.gd-tybox dl > div:first-child { border-top: 0; }
.gd-tybox dt { color: var(--muted); font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.gd-tybox dd { margin: 0; }
.gd-tymons-h { margin-top: 22px; font-size: 18px !important; }
.gd-gym { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 18px; border-radius: 18px; border: 2px solid color-mix(in srgb, var(--tc) 40%, #fff); font-size: 16.5px; line-height: 1.75; color: #3d3860; }
.gd-gym > .ic { flex: none; width: 24px; height: 24px; margin-top: 3px; color: var(--ink); }
.gd-gym b { color: var(--ink); }
.gd-gym a:not(.gd-ty) { color: var(--link); }
.gd-gym .gd-ty { font-size: 13.5px; padding: 1px 10px; }

/* where to train: the level meter and the bands */
.gd-meter { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; margin-top: 26px; }
.gd-meter a { display: grid; place-items: center; height: 54px; background: var(--lc); color: #fff; text-decoration: none; font-size: 15px; transition: transform .15s, filter .15s; }
.gd-meter a:first-child { border-start-start-radius: 16px; border-end-start-radius: 16px; }
.gd-meter a:last-child { border-start-end-radius: 16px; border-end-end-radius: 16px; }
.gd-meter a:hover { transform: translateY(-3px); filter: brightness(1.08); }
.gd-dl { display: grid; gap: 2px; }
.gd-dl > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding-block: 14px; border-top: 1px solid var(--line); }
.gd-dl > div:first-child { border-top: 0; }
.gd-dl dt { display: flex; align-items: center; gap: 8px; align-self: start; font: 700 16px/1.5 var(--heb); color: var(--ink); }
.gd-dl dt .ic { width: 17px; height: 17px; color: var(--ac); }
.gd-dl dd { margin: 0; color: #3d3860; font-size: 16.5px; line-height: 1.7; }
.gd-band { --lc: var(--ac); }
.gd-band > h2 { color: var(--ink); }
.gd-band-lead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 18px; color: var(--muted); font-size: 17px; }
.gd-band-n { font-size: clamp(44px, 5vw, 76px); line-height: .9; letter-spacing: -.03em; color: var(--lc); }
.gd-places { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.gd-place { padding: 16px 18px 14px; border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(45, 30, 110, .07); border-top: 4px solid var(--lc); }
.gd-place-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gd-place h3 { font-size: 19px; }
.gd-place .gd-pl { color: var(--ink); text-decoration: none; }
.gd-place .gd-pl:hover { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.gd-lv { flex: none; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.gd-lv b { color: var(--lc); font-size: 17px; }
.gd-place-sub { margin-top: 2px; color: var(--ash); font-size: 14px; line-height: 1.5; }
.gd-needs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gd-need { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: #fff4e5; color: #8a4b00; font-size: 13px; font-weight: 700; line-height: 1.6; }
.gd-need .ic { width: 13px; height: 13px; }
.gd-place .gd-mons { gap: 8px; margin-top: 10px; }
.gd-place .gd-mon { padding-inline-end: 10px; }
.gd-place .gd-mon .spr { width: 42px; height: 42px; }
.gd-again { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.gd-again .ic { flex: none; width: 18px; height: 18px; margin-top: 5px; color: var(--lc); }
.gd-again a { color: var(--link); font-weight: 600; }
.gd-place { scroll-margin-top: 96px; }
.gd-unlock { margin-top: 18px; padding: 16px 20px; border-radius: 20px; background: var(--mist); }
.gd-unlock h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-bottom: 6px; }
.gd-unlock h3 .ic { width: 19px; height: 19px; color: var(--lc); }
.gd-unlock ul { display: grid; gap: 6px; padding-inline-start: 20px; font-size: 16.5px; line-height: 1.65; }
.gd-unlock li::marker { color: var(--lc); }
.gd-unlock a:not(.gd-ty) { color: var(--link); }
.gd-unlock .gd-ty { font-size: 13px; padding: 0 9px; }

/* getting started */
.gd-starters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.gd-starter { position: relative; overflow: hidden; isolation: isolate; padding: 18px 20px 22px; border-radius: 26px; background: #fff; background: linear-gradient(165deg, color-mix(in srgb, var(--tc) 12%, #fff), color-mix(in srgb, var(--tc) 30%, #fff)); }
.gd-starter::before { content: ''; position: absolute; z-index: -1; width: 220px; height: 220px; inset-inline-end: -80px; top: -90px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .45); }
.gd-starter .spr { width: 112px; height: 112px; margin-inline: auto 0; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .14)); }
.gd-starter h3 { margin: 4px 0 8px; font-size: clamp(24px, 2vw, 30px); }
.gd-starter h3 a { color: var(--ink); text-decoration: none; }
.gd-starter h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.gd-starter p { margin-top: 12px; color: #3d3860; font-size: 16px; line-height: 1.65; }
.gd-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.gd-feat { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--mist-2); }
.gd-feat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.gd-feat-i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--mist); color: var(--ac); }
.gd-feat-i .ic { width: 22px; height: 22px; }
.gd-feat h3 { font-size: 18px; margin-bottom: 4px; }
.gd-feat p { color: #3d3860; font-size: 16px; line-height: 1.65; }
.gd-feat a { color: var(--link); }
.gd-keys { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px 18px; }
.gd-keys li { display: flex; align-items: center; gap: 10px; font-size: 16px; color: #3d3860; }
.gd-page kbd { display: inline-block; min-width: 34px; padding: 3px 9px; border-radius: 9px; background: #fff; border: 1px solid var(--mist-2); box-shadow: 0 3px 0 var(--mist-2); color: var(--ink); font: 700 14px/1.3 var(--lat); text-align: center; direction: ltr; white-space: nowrap; }

/* catching */
.gd-tablebox { margin-top: 18px; overflow-x: auto; border-radius: 22px; background: #fff; box-shadow: var(--lift); }
.gd-btable { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.6; }
.gd-btable th, .gd-btable td { padding: 12px 16px; text-align: start; vertical-align: middle; border-top: 1px solid var(--line); }
.gd-btable thead th { border-top: 0; background: var(--mist); color: var(--muted); font-size: 14px; font-weight: 700; }
.gd-btable tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.gd-btable td { color: #3d3860; }
.gd-ballname { display: inline-flex; align-items: center; gap: 10px; }
.gd-ball { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(180deg, var(--bc) 0 44%, #2b2650 44% 56%, #f4f4f8 56%); box-shadow: inset 0 0 0 2px #2b2650; }
.gd-ball::after { content: ''; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #2b2650; }
.gd-price { white-space: nowrap; font-weight: 700; color: var(--ink) !important; }
.gd-scale { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 18px; }
.gd-scale > li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--mist-2); }
.gd-scale-k { display: grid; gap: 6px; }
.gd-scale-k b { font: 800 19px/1.2 var(--heb); color: var(--sc); }
.gd-dots { display: flex; gap: 4px; }
.gd-dots i { width: 18px; height: 7px; border-radius: 4px; background: var(--mist-2); }
.gd-dots i.on { background: var(--sc); }
.gd-scale .gd-mons { margin-top: 0; }
.gd-shiny { display: flex; justify-content: center; gap: clamp(20px, 6vw, 70px); margin: 6px 0 18px; padding: 18px; border-radius: 24px; background: radial-gradient(circle at 70% 40%, #fff6d6, var(--mist) 70%); }
.gd-shiny figure { margin: 0; text-align: center; }
.gd-shiny .spr { width: 150px; height: 150px; margin-inline: auto; }
.gd-shiny figcaption { margin-top: 4px; color: var(--muted); font-size: 15px; font-weight: 700; }

/* related news */
.gd-news { margin-top: clamp(64px, 8vw, 110px); }
.gd-news h2 { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; font-family: var(--heb); font-size: clamp(24px, 2.2vw, 32px); }
.gd-news h2::after { content: ''; flex: 1; height: 2px; background: var(--ink); opacity: .12; }
.gd-news-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.gd-nc { display: grid; gap: 12px; align-content: start; color: inherit; text-decoration: none; }
.gd-nc img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: var(--mist-2); }
.gd-nc b { display: block; font: 800 18px/1.3 var(--heb); }
.gd-nc time { display: block; margin-top: 4px; color: var(--ash); font-size: 14px; font-weight: 600; }
.gd-nc:hover b { text-decoration: underline; text-decoration-color: var(--ac); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* the hub */
.gd-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.gd-cards > .gd-card { grid-column: span 2; }
.gd-cards > .gd-card:nth-child(n+4) { grid-column: span 3; }
.gd-card { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 10px; min-height: 300px; padding: 26px 26px 120px; border-radius: 28px; background: var(--tint); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.gd-card::before { content: ''; position: absolute; z-index: -1; width: 300px; height: 300px; inset-inline-start: -120px; bottom: -190px; border-radius: 50%; border: 34px solid rgba(255, 255, 255, .5); }
.gd-card:hover { transform: translateY(-4px); box-shadow: var(--lift); }
.gd-card.t-orange { --tint: linear-gradient(160deg, #fff0e2, #ffd2b4); --ci: #ee3b32; }
.gd-card.t-violet { --tint: linear-gradient(160deg, #f0eaff, #d9cbff); --ci: #7c4dea; }
.gd-card.t-green { --tint: linear-gradient(160deg, #e3f8ec, #bfeccf); --ci: #1a9a55; }
.gd-card.t-blue { --tint: linear-gradient(160deg, #e5f0ff, #c7dcff); --ci: #2f6fe8; }
.gd-card.t-pink { --tint: linear-gradient(160deg, #ffe8f1, #ffc9dc); --ci: #d9467a; }
.gd-card-i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--ci, var(--ac)); color: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .14); flex: none; }
.gd-card-i .ic { width: 26px; height: 26px; }
.gd-card h2 { margin-top: 8px; font-family: var(--heb); font-size: clamp(25px, 2.2vw, 32px); line-height: 1.12; }
.gd-card p { color: #4a4570; font-size: 16.5px; line-height: 1.6; max-width: 440px; }
.gd-card-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 800; color: var(--ci); }
.gd-card-go .ic { width: 18px; height: 18px; transition: transform .2s; }
.gd-card:hover .gd-card-go .ic { transform: translateX(-4px); }
.gd-card-mons { position: absolute; inset-inline-end: 14px; bottom: 8px; display: flex; }
.gd-card-mons .spr { width: 96px; height: 96px; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .15)); }
.gd-more-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.gd-wide { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 24px; background: #fff; box-shadow: var(--lift); color: var(--ink); text-decoration: none; }
.gd-wide > span:nth-child(2) { flex: 1; }
.gd-wide b { display: block; font: 800 21px/1.25 var(--heb); }
.gd-wide span span { display: block; margin-top: 2px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.gd-wide > .ic { width: 22px; height: 22px; color: var(--ash); flex: none; transition: transform .2s; }
.gd-wide:hover > .ic { transform: translateX(-4px); color: var(--ink); }
.gd-wide .gd-card-i { --ci: var(--ink); }
.gd-help { margin-top: clamp(48px, 6vw, 80px); max-width: 860px; }
.gd-help h2 { font-family: var(--heb); font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 10px; }
.gd-help p { color: var(--muted); font-size: 18px; line-height: 1.75; }

/* the download page */
.gd-dl-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 520px); gap: clamp(28px, 5vw, 80px); align-items: center; max-width: none; }
.gd-dl-btn { font-size: 18px; padding: 18px 30px; background: #1a9a55; }
.gd-dl-btn:hover { background: #137a43; }
.gd-phone { position: relative; aspect-ratio: 19.5 / 9; padding: 12px; border-radius: 44px; background: #1d1838; box-shadow: var(--lift), inset 0 0 0 2px #3a3460; }
.gd-phone::before { content: ''; position: absolute; z-index: 1; top: 50%; inset-inline-end: 3px; width: 5px; height: 52px; margin-top: -26px; border-radius: 4px; background: #3a3460; }
.gd-phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; }
.gd-steps { list-style: none; counter-reset: gd; padding: 0; display: grid; gap: 12px; margin-top: 18px; }
.gd-steps li { counter-increment: gd; position: relative; padding: 14px 18px; padding-inline-start: 66px; border-radius: 18px; background: #fff; border: 1px solid var(--mist-2); font-size: 17px; line-height: 1.65; color: #3d3860; }
.gd-steps li::before { content: counter(gd); position: absolute; inset-inline-start: 16px; top: 13px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ac); color: #fff; font: 900 18px/1 var(--lat); box-shadow: 0 3px 0 rgba(0, 0, 0, .14); }
.gd-steps b { color: var(--ink); }
.gd-steps a { color: var(--link); font-weight: 700; }
.gd-faq { columns: 1; margin-top: 18px; }

@media (max-width: 1100px) {
  .gd-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; }
  .gd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gd-cards > .gd-card, .gd-cards > .gd-card:nth-child(n+4) { grid-column: span 1; }
  .gd-cards > .gd-card:first-child { grid-column: span 2; }
  .gd-starters { grid-template-columns: 1fr; }
  .gd-starter { display: grid; grid-template-columns: 110px minmax(0, 1fr); column-gap: 18px; }
  .gd-starter .spr { grid-row: span 3; margin: 0; }
  .gd-starter p { grid-column: 2; }
}
@media (max-width: 900px) {
  .gd-grid { grid-template-columns: minmax(0, 1fr); }
  .gd-aside { position: static; order: -1; }
  .gd-aside .play { display: none; }
  .gd-toc { padding: 12px; box-shadow: none; border: 1px solid var(--mist-2); border-top-width: 4px; }
  .gd-toc-t { display: none; }
  .gd-toc ol { display: flex; gap: 6px; overflow-x: auto; max-height: none; scrollbar-width: none; }
  .gd-toc a { white-space: nowrap; background: var(--mist); }
  .gd-dl-head { grid-template-columns: minmax(0, 1fr); }
  .gd-phone { max-width: 460px; }
  .gd-feats { grid-template-columns: minmax(0, 1fr); }
  .gd-dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .gd-more-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .gd-body { font-size: 17.5px; }
  .gd-tygrid { grid-template-columns: minmax(0, 1fr); }
  .gd-meter { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gd-meter a { height: 46px; font-size: 14px; border-radius: 0 !important; }
  .gd-meter a:nth-child(1) { border-start-start-radius: 14px !important; }
  .gd-meter a:nth-child(5) { border-start-end-radius: 14px !important; }
  .gd-meter a:nth-child(6) { border-end-start-radius: 14px !important; }
  .gd-meter a:nth-child(10) { border-end-end-radius: 14px !important; }
  .gd-starter { grid-template-columns: 84px minmax(0, 1fr); }
  .gd-starter .spr { width: 84px; height: 84px; }
  .gd-scale > li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gd-btable th, .gd-btable td { padding: 10px 12px; }
  .gd-btable tbody th { white-space: normal; }
  .gd-cr { grid-template-columns: 50px minmax(0, 1fr); gap: 10px; padding: 10px 12px; }
  .gd-cards { grid-template-columns: minmax(0, 1fr); }
  .gd-cards > .gd-card, .gd-cards > .gd-card:first-child, .gd-cards > .gd-card:nth-child(n+4) { grid-column: auto; }
  .gd-card { min-height: 0; padding: 22px 22px 108px; }
  .gd-card-mons .spr { width: 84px; height: 84px; }
  .gd-steps li { padding-inline-start: 60px; }
  .gd-cta .play { --h: 64px; --b: 48px; max-width: 100%; font-size: 19px; }
  .gd-shiny .spr { width: 116px; height: 116px; }
  .gd-chartbox { margin-inline: calc(var(--pad) * -1); border-radius: 0; box-shadow: none; border-block: 1px solid var(--mist-2); padding-inline: var(--pad); }
}
@media (prefers-reduced-motion: reduce) {
  .gd-card, .gd-card-go .ic, .gd-wide > .ic, .gd-meter a, .gd-tb, .gd-mon { transition: none; }
  .gd-card:hover, .gd-meter a:hover, .gd-tb[aria-pressed="true"] { transform: none; }
}
