/*
 * DRAKION V0.4.1AP38 — Remove AP37 side effects / Restore Badges height
 * CSS only: restores badge cards after AP37 compressed them.
 */

/* Restore badge module cards/cards content */
.drakion-ap26-badges-grid,
.drakion-ap14-badges-grid,
[class*="badges-grid"],
[class*="badge-grid"] {
    align-items: stretch !important;
    overflow: visible !important;
}

.drakion-ap26-badge-card,
.drakion-ap14-badge-card,
[class*="badge-card"],
[class*="badges-card"] {
    min-height: 118px !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    box-sizing: border-box !important;
}

.drakion-ap26-badge-card img,
.drakion-ap14-badge-card img,
[class*="badge-card"] img,
[class*="badges-card"] img {
    max-height: 42px !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
    overflow: visible !important;
    display: inline-block !important;
}

.drakion-ap26-badge-card .badge-title,
.drakion-ap14-badge-card .badge-title,
[class*="badge-card"] .badge-title,
[class*="badges-card"] .badge-title {
    overflow: visible !important;
    white-space: normal !important;
    line-height: 1.2 !important;
}

/* Make sure AP37 hidden hero does not affect anything if browser cache still has it */
.drakion-ap37-profile-hero {
    display: none !important;
}

body.drakion-ap37-profile-active .drakion-am2-profile-hero,
body.drakion-ap37-profile-active .drakion-am3-profile-hero {
    display: block !important;
}
