/**
 * ACME Child Pages - Card Enhancements
 *
 * Arrow colours follow the theme's per-variant card styling
 * via the same body-class scoping the theme uses.
 */

.acme-cp-arrow {
    display: block;
    text-align: right;
    margin-top: auto;
    padding-top: 0.75rem;
}

.acme-cp-arrow a,
.acme-cp-arrow a:hover,
.acme-cp-arrow a:focus,
.acme-cp-arrow a:visited,
.preview-module .details-container .acme-cp-arrow a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 1rem;
}

/* Theme variant colours — mirrors category-icon colour per body class */
.hcrg-care-group .acme-cp-arrow a { background: #B52159; }
.nhs .acme-cp-arrow a { background: #005EB8; }
.child-family-wellbeing .acme-cp-arrow a { background: #6B2D5B; }
.third-party .acme-cp-arrow a { background: #3C3C3B; }

/* Force white on arrow icon — theme's .details-container * sets dark colour */
.preview-module .details-container .acme-cp-arrow a,
.preview-module .details-container .acme-cp-arrow a *,
.preview-module .details-container .acme-cp-arrow i {
    color: #fff !important;
}

/* Card title link — no underline on hover, matching theme archive cards */
.preview-module .details-container h3 a {
    text-decoration: none;
}

/* Ensure details container stretches full card height and arrow pins to bottom */
.even-height-container .preview-module .details-container {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.even-height-container .preview-module {
    display: flex;
    flex-direction: column;
}
