.hero-pet-panel{--hp-ink:#153d32;--hp-green:#29664b;--hp-line:#d7e3d8;--hp-soft:#edf4e8;margin:1.6rem 0;padding:clamp(1rem,3vw,1.8rem);border:1px solid var(--hp-line);border-radius:18px;background:linear-gradient(135deg,#f4f8ef,#edf4eb);color:var(--hp-ink);line-height:1.65;scroll-margin-top:6rem}
.hero-pet-panel :is(h2,h3,h4,h5),.v4-pet-recommendations :is(h3,h4,h5){color:#153d32!important;line-height:1.35}.hero-pet-panel h2,.hero-pet-panel h3{margin-top:0}.hero-pet-panel h4{font-size:1.25rem;margin:.4rem 0}.hero-pet-panel h5{font-size:1rem;margin:.8rem 0 .35rem}.hero-pet-panel a,.v4-pet-recommendations a{color:#245f44!important;text-underline-offset:.2em}.hero-pet-panel a:hover,.v4-pet-recommendations a:hover{color:#123c2b!important}.hero-pet-panel a:focus-visible,.hero-pet-panel summary:focus-visible,.v4-pet-recommendations a:focus-visible,.v4-pet-recommendations summary:focus-visible{outline:3px solid #c88725;outline-offset:4px}
.hp-panel-head p{max-width:68ch;color:#526b5c}.hp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:1rem;margin:1rem 0;align-items:start}.hp-grid.hp-single{grid-template-columns:minmax(0,1fr)}.hp-card,.hp-pet{min-width:0;padding:1.1rem;background:#fff;border:1px solid #d5e2d5;border-radius:14px;overflow-wrap:anywhere;box-shadow:0 3px 12px #1e533209}.hp-card-head{display:flex;gap:1rem;align-items:center;text-decoration:none}.hp-card-head h3,.hp-card-head h4{margin:0}.hp-portrait{display:block;flex:0 0 88px;width:88px;height:88px;max-width:88px;object-fit:contain;padding:8px;border-radius:16px;background:#edf4e8;border:1px solid #e0e9d9}.hp-hero-portrait{object-position:center top}.hp-reason{margin:.85rem 0 .55rem;font-weight:550}.hp-use{font-size:.88rem;color:#53694d;background:#f0f5e9;border-radius:8px;padding:.5rem .65rem}.hp-ground+.hp-ground{margin-top:1rem;padding-top:.75rem;border-top:1px solid #e2eadd}.hp-empty,.hp-alternatives{color:#52695b;font-size:.92rem}.hp-alternatives{border-top:1px solid #e2eadd;padding-top:.75rem;margin-bottom:0}.hp-action{display:inline-flex;align-items:center;gap:.65rem;min-height:42px;padding:.25rem 0;font-weight:700}.hp-action span{font-size:1.2em}.hp-related{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;margin-top:1rem}.hp-related a{min-height:42px;display:inline-flex;gap:.5rem;align-items:center;font-weight:650}
.hero-pet-panel ul{padding-inline-start:1.25rem}.hero-pet-panel li+li{margin-top:.35rem}.hero-pet-panel details{margin:.65rem 0}.hero-pet-panel summary{cursor:pointer;padding:.45rem 0;color:#2e6047;font-weight:650;min-height:40px}.hp-rule-details{font-size:.93rem}.hp-skills{margin:.5rem 0}.hp-skills small{color:#667869}.hp-mini-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:.75rem}.hp-mini-grid .hp-card{box-shadow:none;background:#f8faf5}.hp-mini-grid .hp-portrait{flex-basis:64px;width:64px;height:64px}.hp-mini-grid .hp-card h4{font-size:1.1rem}.v4-pet-recommendations .hp-card{margin:0}.v4-pet-recommendations .hp-grid{margin-top:.75rem}.v4-pet-recommendations .hp-card-head h4{margin:0}.v4-pet-recommendations .hp-use{color:#53694d}.v4-pet-recommendations .v4-warning{font-size:.9rem}.v4-pet-recommendations details{border:0;padding:0;background:transparent}.v4-pet-recommendations summary{min-height:40px;padding:.4rem 0}
@media(max-width:600px){.hero-pet-panel{padding:1rem;margin:1.2rem 0}.hp-grid,.hp-mini-grid{grid-template-columns:1fr}.hp-card,.hp-pet{padding:1rem}.hp-portrait{flex-basis:76px;width:76px;height:76px}.hp-card-head{gap:.85rem}}
/* Existing page-level image rules must not turn the taller PNG pets into a
   different card header height. Keep the complete image within one fixed box. */
:is(.hero-pet-panel,.v4-pet-recommendations) .hp-card-head>.hp-portrait{box-sizing:border-box;flex:0 0 88px;width:88px!important;height:88px!important;min-width:88px;max-width:88px;min-height:88px;max-height:88px;object-fit:contain!important;object-position:center}
.hero-pet-panel .hp-mini-grid .hp-card-head>.hp-portrait{flex-basis:64px;width:64px!important;height:64px!important;min-width:64px;max-width:64px;min-height:64px;max-height:64px}
@media(max-width:600px){:is(.hero-pet-panel,.v4-pet-recommendations) .hp-card-head>.hp-portrait{flex-basis:76px;width:76px!important;height:76px!important;min-width:76px;max-width:76px;min-height:76px;max-height:76px}.hero-pet-panel .hp-mini-grid .hp-card-head>.hp-portrait{flex-basis:64px;width:64px!important;height:64px!important;min-width:64px;max-width:64px;min-height:64px;max-height:64px}}

.hero-pet-panel .hp-image-fallback,.v4-pet-recommendations .hp-image-fallback{display:grid;place-items:center;font-size:1.65rem;font-weight:750;color:#245f44;line-height:1}
