/* PokePolis Engine 1.17.4 — Pokedex v19 composition polish */
.entry-content .pp-pokedex-hero{
    display:grid !important;
    grid-template-columns:minmax(250px,310px) minmax(0,1fr) !important;
    gap:34px !important;
    align-items:start !important;
    margin:0 0 30px !important;
}
.entry-content .pp-pokedex-hero-media{
    display:flex !important;
    align-items:center;
    justify-content:center;
    min-height:310px;
    margin:0 !important;
    padding:18px;
    border:1px solid #e1e4ed;
    border-radius:18px;
    background:linear-gradient(180deg,#fff 0%,#fafbff 100%);
    box-sizing:border-box;
}
.entry-content .pp-pokedex-hero-media img{
    width:100% !important;
    max-width:280px !important;
    max-height:280px !important;
    height:auto !important;
    object-fit:contain !important;
    border-radius:0 !important;
}
.entry-content .pp-pokedex-hero-copy{
    min-width:0;
    padding-top:2px;
}
.entry-content .pp-pokedex-hero-copy > h2:first-child{
    margin-top:0 !important;
}
.entry-content .pp-pokedex-hero-copy > p{
    max-width:760px;
    line-height:1.75;
}
.entry-content .pp-pokedex-hero-copy .pp-dex-section--hero-profile{
    margin:22px 0 0 !important;
    padding:20px 0 0;
    border-top:1px solid #e5e7ef;
}
.entry-content .pp-pokedex-hero-copy .pp-dex-section--hero-profile > h2{
    margin:0 0 12px !important;
    font-size:1.22rem;
}
.entry-content .pp-pokedex-hero-copy .pp-dex-section--hero-profile .pp-dex-type-row{
    margin:6px 0 12px;
}
.entry-content .pp-pokedex-hero-copy .pp-dex-section--hero-profile .pp-dex-facts{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}
.entry-content .pp-pokedex-hero-copy .pp-dex-section--hero-profile .pp-dex-fact{
    padding:11px 13px;
}
/* v19 has its own compact type-effect cards, so the old interactive calculator
   should never occupy the bottom of a generated Pokedex page. */
.entry-content + .pkp-type-calculator,
.entry-content .pkp-type-calculator{
    display:none !important;
}
@media (max-width:860px){
    .entry-content .pp-pokedex-hero{
        grid-template-columns:1fr !important;
        gap:18px !important;
    }
    .entry-content .pp-pokedex-hero-media{
        width:100%;
        max-width:360px;
        min-height:0;
        margin:0 auto !important;
    }
    .entry-content .pp-pokedex-hero-copy .pp-dex-section--hero-profile .pp-dex-facts{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
@media (max-width:520px){
    .entry-content .pp-pokedex-hero-copy .pp-dex-section--hero-profile .pp-dex-facts{
        grid-template-columns:1fr;
    }
}
