.pk { --ink:#192a22; --muted:#536359; --accent:#1a5a42; --accent-dark:#123f31; --paper:#f5f7f3; --wash:#eaf0e9; }
.pk-wrap { width:min(100% - 40px,1160px); margin-inline:auto; }
.pk-header { background:#112c25; color:#f4f9f1; border-bottom:1px solid #315447; }
.pk-masthead { min-height:74px; display:grid; grid-template-columns:auto 1fr auto; gap:clamp(12px,4vw,45px); align-items:center; }
.pk-brand { display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:-.035em; font-size:1.3rem; line-height:1.05; }
.pk-brand small { display:block; margin-top:4px; color:#c1d4c5; font-size:.66rem; font-weight:600; letter-spacing:.035em; }
.pk-header a { color:inherit; text-decoration:none; }
.pk-masthead nav { display:flex; align-items:center; flex-wrap:wrap; gap:4px clamp(12px,2.5vw,28px); }
.pk-masthead nav a,.pk-lang { font-size:.88rem; padding-block:9px; white-space:nowrap; }
.pk-masthead nav [aria-current] { box-shadow:inset 0 -2px #b6daf7; font-weight:750; }
.pk-header a:hover { text-decoration:underline; }
.pk-header :focus-visible,.pk-hero :focus-visible { outline-color:#fff; }
.pk-skip { position:absolute; z-index:4; top:6px; left:12px; background:#fff; padding:10px; transform:translateY(-150%); }
.pk-skip:focus { transform:none; }
.pk-hero {
  position:relative;
  display:grid;
  align-items:end;
  min-height:calc(100vh - 75px);
  min-height:calc(100svh - 75px);
  background:#142e25;
  color:white;
  isolation:isolate;
}
.pk-hero img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:76% center; z-index:-2; }
.pk-hero::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#0a1b16ed 0%,#0a1b16b3 37%,transparent 77%),linear-gradient(0deg,#0a1b1680,transparent 48%); z-index:-1; }
.pk-hero .pk-wrap { padding-block:clamp(38px,8vh,86px); }
.pk-hero h1 { max-width:11ch; font-size:clamp(3.6rem,8vw,8rem); letter-spacing:-.055em; line-height:.96; text-wrap:balance; }
.pk-hero p { max-width:43ch; color:#eef3ed; margin-top:18px; font-size:clamp(.96rem,2vw,1.15rem); }
.pk-search { display:flex; gap:8px; align-items:end; max-width:475px; margin-top:22px; }
.pk-search label { flex:1; min-width:0; }
.pk-search button { background:#deefb4; color:#152c21; border-color:#deefb4; }
.pk-search button:hover { background:#edf8d3; }
.pk-hero-links { display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:14px; }
.pk-hero-links a { color:white; font-weight:650; }
.pk-section { padding-block:34px; border-bottom:1px solid var(--line); }
.pk-section h2 { margin-bottom:14px; }
.pk-panels { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.pk-panel { display:grid; align-content:start; gap:8px; padding:19px; color:var(--ink); text-decoration:none; background:white; border:1px solid var(--line); border-radius:9px; }
.pk-panel:hover { border-color:var(--accent); }
.pk-panel strong { font-size:1.15rem; }
.pk-panel span { color:var(--muted); font-size:.9rem; }
.pk-species { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.pk-species .pk-panel { padding:14px; }
.pk-page { padding-block:clamp(28px,5vw,54px); }
.pk-page h1 { font-size:clamp(2.4rem,6vw,4.25rem); }
.pk-page .lead { margin-bottom:23px; }
.pk-footer { border-top:1px solid var(--line); padding:20px 0; color:var(--muted); font-size:.86rem; }
.pk-footer .pk-wrap { display:flex; flex-wrap:wrap; gap:8px 20px; }
.pk-type { display:inline-block; padding:2px 8px; border:1px solid #d6e0d6; border-radius:4px; background:#eef1ea; color:#263a2e; font-size:.77rem; font-weight:680; white-space:nowrap; }
.pk-type-fire,.pk-type-fighting { background:#fcece5; color:#803b29; border-color:#ebd1c5; }
.pk-type-electric,.pk-type-ground,.pk-type-rock { background:#faf0d2; color:#594516; border-color:#e6dbb8; }
.pk-type-grass,.pk-type-bug { background:#e5efd6; color:#334c25; border-color:#cddcbb; }
.pk-type-water,.pk-type-ice,.pk-type-flying { background:#e5eef8; color:#284666; border-color:#d2deec; }
.pk-type-ghost,.pk-type-dragon,.pk-type-psychic,.pk-type-poison,.pk-type-fairy { background:#f1e8f7; color:#5b3968; border-color:#e4d6ea; }
.pk-type-dark,.pk-type-steel { background:#e6eaeb; color:#344044; border-color:#d5dddf; }
.pk-table-scroll { overflow:auto; max-height:630px; border:1px solid var(--line); background:#fff; border-radius:7px; }
.pk-table-scroll:focus-visible { outline-offset:2px; }
.pk-matrix { border-collapse:separate; border-spacing:0; white-space:nowrap; font-size:.83rem; }
.pk-matrix th,.pk-matrix td { padding:7px 10px; border-right:1px solid #dbe2da; border-bottom:1px solid #dbe2da; text-align:center; }
.pk-matrix thead th { position:sticky; top:0; z-index:1; background:#e8eee7; }
.pk-matrix th:first-child { position:sticky; left:0; z-index:1; background:#e8eee7; text-align:left; }
.pk-matrix thead th:first-child { z-index:2; }
.pk-matrix .strong { background:#dcebd4; color:#284513; font-weight:750; }
.pk-matrix .weak { background:#f9e2d9; color:#72371f; }
.pk-matrix .immune { background:#e7eaec; color:#353c41; font-weight:750; }
.pk-matrix caption { text-align:left; padding:10px; }
.pk-article { max-width:72ch; }
.pk-article h2 { margin:26px 0 10px; }
.pk-article p { margin-bottom:14px; }
.pk-article .pk-panel { margin-top:20px; }
@media(max-width:730px) {
  .pk-wrap { width:calc(100% - 32px); }
  .pk-masthead { grid-template-columns:1fr auto; gap:1px 14px; padding-top:8px; }
  .pk-masthead nav { grid-column:1/-1; grid-row:2; }
  .pk-hero { min-height:calc(100vh - 92px); min-height:calc(100svh - 92px); }
  .pk-hero h1 { max-width:12ch; font-size:clamp(2.5rem,10.5vw,4.25rem); }
  .pk-hero .pk-wrap { padding-block:28px; }
  .pk-hero img { object-position:80% center; }
  .pk-hero::before { background:linear-gradient(0deg,#0b1b17f5 0%,#0b1b17d9 44%,#0b1b164d 75%,transparent); }
  .pk-panels { grid-template-columns:1fr; }
  .pk-species { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-height:550px) { .pk-hero .pk-wrap { padding-block:24px; } }

/* Pokémon landing page and editorial features */
.pk { --paper:#f4f2e8; --line:#dbdfd4; }
.pk-header { background:#14251e; border-color:#45554a; }
.pk-masthead nav { justify-content:center; }
.pk-lang { padding-inline:12px; border:1px solid #647569; border-radius:4px; }
.pk-expedition .pk-wrap { padding-block:clamp(48px,9vh,112px); }
.pk-expedition img { object-position:73% center; }
.pk-expedition::before { background:linear-gradient(90deg,#0c1b15ee,#0c1b157d 46%,transparent 80%),linear-gradient(0deg,#0c1b15cc,transparent 64%); }
.pk-expedition h1,.pk-home-content h2 { font-family:Georgia,'Times New Roman',serif; font-weight:500; letter-spacing:-.055em; }
.pk-expedition h1 { max-width:13ch; color:#fffdf0; font-size:clamp(3.8rem,8vw,7.65rem); }
.pk-expedition .pk-search { margin-top:28px; }
.pk-expedition .pk-search label { color:#fff; }
.pk-expedition input { background:#fffef6; color:#192a22; }
.pk-expedition button { border-radius:5px; }
.pk-expedition .pk-hero-links { margin-top:20px; }
.pk-home-content { background:#f4f2e8; }
.pk-home-content .pk-section { padding-block:clamp(36px,6vw,72px); }
.pk-home-content h2 { line-height:1; font-size:clamp(2.15rem,5vw,4rem); margin:0 0 23px; }
.pk-home-grid { display:grid; grid-template-columns:1.65fr 1fr; grid-template-rows:repeat(2,minmax(190px,auto)); gap:14px; }
.pk-story { position:relative; isolation:isolate; display:flex; align-items:end; min-width:0; overflow:hidden; border-radius:7px; text-decoration:none; color:#fffdf0; background:#203c31; }
.pk-story img { position:absolute; inset:0; z-index:-2; width:100%; max-width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.pk-story::after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg,#0c211bec,transparent 88%); }
.pk-story:hover img { transform:scale(1.035); }
.pk-story:hover strong { text-decoration:underline; text-underline-offset:.13em; text-decoration-thickness:1px; }
.pk-story-wide { grid-row:span 2; }
.pk-story-wide strong { font-family:Georgia,'Times New Roman',serif; font-weight:500; font-size:clamp(2rem,5vw,4rem); line-height:.97; letter-spacing:-.05em; }
.pk-story-copy { display:grid; gap:8px; padding:clamp(18px,3vw,34px); }
.pk-story-copy > span { color:#e7f2e9; font-size:.91rem; }
.pk-story:not(.pk-story-wide) strong { font-size:1.35rem; }
.pk-story-copy .pk-story-kicker { color:#e1eeb8; font-weight:700; }
.pk-story-dex img { object-position:62% center; }
.pk-story-types { background:#294338; }
.pk-story-types::after { content:none; }
.pk-story-types .pk-story-copy { padding-top:72px; }
.pk-multipliers { position:absolute; inset:14px 15px auto auto; display:flex; gap:4px; }
.pk-multipliers span { display:grid; place-items:center; min-width:42px; padding:3px 8px; aspect-ratio:1; border-radius:5px; background:#bdddab; color:#253f30; font-weight:800; }
.pk-multipliers span:first-child { background:#e6ad92; }
.pk-multipliers span:last-child { background:#ecf4be; }
.pk-section-heading { display:flex; flex-wrap:wrap; gap:10px 18px; justify-content:space-between; align-items:baseline; margin-bottom:23px; }
.pk-section-heading h2 { margin:0; }
.pk-section-heading a { font-weight:700; }
.pk-profile { --tile:#ece3ce; display:grid; border:1px solid #d3d6ca; border-radius:7px; overflow:hidden; background:#fffef8; text-decoration:none; color:#192a22; }
.pk-profile:hover { border-color:#4c6c56; box-shadow:0 3px 0 #dce5d7; }
.pk-profile-electric { --tile:#f4e6a8; }
.pk-profile-fire { --tile:#f5cdb4; }
.pk-profile-ghost { --tile:#e1d6eb; }
.pk-profile-art { display:grid; position:relative; place-items:center; min-height:112px; background:radial-gradient(circle at 50% 65%,#fff9e79c,transparent 58%),var(--tile); color:#3b392c; }
.pk-profile-number { position:absolute; top:7px; left:11px; font:700 .78rem/1.2 ui-monospace,monospace; }
.pk-profile-symbol { font:500 3.6rem/1 Georgia,serif; }
.pk-profile-copy { display:grid; align-content:start; padding:12px; gap:4px; }
.pk-profile-copy strong { font-size:1.13rem; }
.pk-guide-art { aspect-ratio:3; width:100%; object-fit:cover; border-radius:7px; margin-bottom:24px; }
@media (max-width:730px) {
    .pk-masthead nav { justify-content:flex-start; gap:2px 14px; }
    .pk-expedition .pk-wrap { padding-block:36px; }
    .pk-expedition::before { background:linear-gradient(0deg,#0c1b15fa,#0c1b15e6 36%,#0c1b1552 72%,transparent); }
    .pk-expedition h1 { font-size:clamp(2.8rem,10.4vw,4.8rem); }
    .pk-home-grid { grid-template-columns:minmax(0,1fr); grid-template-rows:none; }
    .pk-story { min-height:170px; }
    .pk-story-wide { grid-row:auto; min-height:247px; }
    .pk-guide-art { aspect-ratio:2; }
}
@media (prefers-reduced-motion:reduce) {
    .pk-story img { transition:none; }
}

.pk-waves-reading { display:flex; flex-wrap:wrap; gap:4px 18px; margin:0 0 18px; border-bottom:1px solid var(--line); }
.pk-waves-reading a { display:inline-flex; align-items:center; min-height:44px; font-weight:650; }
.pk-waves-reading [aria-current="page"] { color:var(--ink); text-decoration:none; box-shadow:inset 0 -2px var(--accent); }
