/* Fan page layout on top of Fluid Lycoris (loaded first, unchanged).
   POKEMON PALETTE: the only place with Pokémon colours. A sibling site
   (groudon.de, kyogre.de) swaps these custom properties and nothing else. */
:root {
  --pk-body: #2563b8;      /* main body colour: deep ocean blue */
  --pk-body-2: #174b8f;    /* shade of the body */
  --pk-mark: #ff4a5c;      /* glowing red line markings */
  --pk-glow: #35e0ee;      /* glowing cyan line markings */
  --pk-hero-glow: #35e0ee; /* decorative glow in the hero corner */
  --pk-sky-1: #2a445d;     /* hero background, top (storm sky) */
  --pk-sky-2: #2a445d;     /* hero background, bottom */
  --pk-cloud: #1c2b47;     /* storm clouds */
  --pk-water: #0d3a6b;     /* waves */
  --pk-fin: #1d559f;       /* pectoral fins, a little lighter than the shade */
  --pk-pale: #e8f1ff;      /* white underside and fin tips */
  --pk-dot: #ffe27a;       /* yellow accents on the red lines */
  --pk-ink: #06142b;       /* mouth line, outlines */
  --pk-type-dragon: #6a7bff;
  --pk-type-flying: #8fc7ff;
  --pk-type-ground: #d9a35b;
  --pk-type-water: #4aa8ff;
}

@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url(/fonts/chakra-petch-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url(/fonts/chakra-petch-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url(/fonts/chakra-petch-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url(/fonts/chakra-petch-latin-ext-700.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--fs-body)/1.65 var(--f-sans);
  -webkit-font-smoothing: antialiased;
}
main, .bar, .foot { width: min(64rem, 100% - 2rem); margin-inline: auto; }
a.t-btn { text-decoration: none; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; }
.skip:focus { top: 1rem; }

.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding-block: 1rem; }
.bar__name { font: 700 var(--fs-section) var(--f-display); letter-spacing: 0.04em; } /* brand mark: the one tracked label */
.bar__nav { display: flex; flex-wrap: wrap; gap: 0 0.5rem; }
.bar__nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-inline: 0.25rem; } /* 44px touch target */

/* hero: single-column text card, dark in both themes; decoration is CSS only */
.hero {
  padding: 2.5rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--pk-hero-glow) 26%, transparent), transparent 55%),
    radial-gradient(circle at 0 100%, color-mix(in srgb, var(--pk-body) 30%, transparent), transparent 50%),
    linear-gradient(170deg, var(--pk-sky-1), var(--pk-sky-2));
  border-inline-start: 4px solid var(--pk-body);
  /* the card stays dark in both themes, so keep its text colours light */
  --fg: #eef2f7; --fg-2: #bccadb; --fg-3: #8ea2b9; --accent-2: #33c2b5;
  color: var(--fg);
}
.hero__kicker { margin: 0 0 0.5rem; color: var(--accent-2); font: 600 var(--fs-meta) var(--f-display); }
.hero__title { margin: 0; font: 700 clamp(2.5rem, 9vw, 4.5rem)/1 var(--f-display); }
.hero__ja { margin: 0.5rem 0 0; color: var(--fg-2); font: 600 var(--fs-sheet) var(--f-display); }
.hero__lead { max-width: 40rem; margin: 1rem 0 0; color: var(--fg-2); font-size: 1.0625rem; }
.types { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.type-dragon { border-color: var(--pk-type-dragon); color: var(--pk-type-dragon); }
.type-flying { border-color: var(--pk-type-flying); color: var(--pk-type-flying); }
.type-ground { border-color: var(--pk-type-ground); color: var(--pk-type-ground); }
.type-water { border-color: var(--pk-type-water); color: var(--pk-type-water); }


section { margin-top: 3rem; }
.sec-title { margin: 0 0 1rem; }
.panel { padding: 1.25rem; }
.quote { margin: 1rem 0 0; padding-inline-start: 1rem; border-inline-start: 4px solid var(--pk-body); }
.quote p { margin: 0; font-size: 1.0625rem; }
.quote footer { margin-top: 0.5rem; color: var(--fg-3); font-size: var(--fs-meta); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 0; }
.facts dt { color: var(--fg-3); font: 600 var(--fs-meta) var(--f-display); }
.facts dd { margin: 0; }
.facts .types { margin: 0; }

.stats { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.stat { display: grid; grid-template-columns: 9.5rem 3rem 1fr; align-items: center; gap: 0.75rem; }
.stat__name { color: var(--fg-2); }
.stat__val { font: 700 var(--fs-section) var(--f-display); text-align: end; }
.stat__bar { display: block; width: 100%; height: 0.75rem; }
.stat__track { fill: var(--card); stroke: var(--line); }
.stat__fill { fill: var(--pk-body); }

.trio { width: 100%; border-collapse: collapse; }
.trio th, .trio td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--line); text-align: start; }
.trio th { color: var(--fg-3); font: 600 var(--fs-meta) var(--f-display); }
.trio tr.is-self td { background: var(--hover); }
.table-wrap { overflow-x: auto; }

.more { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.foot { margin-block: 3rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--fg-3); font-size: var(--fs-meta); }
.foot p { margin: 0 0 0.5rem; }

@media (max-width: 40rem) {
  .hero { padding: 1.5rem 1.25rem; }
  .stat { grid-template-columns: 1fr 3rem; }
  .stat__bar { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr; gap: 0.1rem; }
  .facts dd { margin-bottom: 0.75rem; }
}


/* trio table becomes stacked cards on narrow screens */
@media (max-width: 37.5rem) {
  .table-wrap { overflow: visible; }
  .trio, .trio tbody { display: block; }
  .trio thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .trio tr { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem; margin-top: 0.75rem; padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: var(--r-panel); }
  .trio th, .trio td { padding: 0; border-bottom: 0; }
  .trio tr.is-self { background: var(--hover); }
  .trio td:nth-child(1) { color: var(--fg-3); font: 600 var(--fs-meta) var(--f-display); }
  .trio td:nth-child(2) { font-weight: 600; overflow-wrap: anywhere; }
  .trio td:nth-child(n+3) { grid-column: 1 / -1; }
  .trio td:nth-child(n+3)::before { content: attr(data-label) ": "; color: var(--fg-3); }
}
