/* Styles for the [hrk_gp_latest] shortcode — self-contained, no dependency
   on search.css/detail.css custom properties so it renders correctly
   wherever it is embedded. */

.hrk-latest-practices {
    --hrk-lp-accent: #7300FF;
    --hrk-lp-accent-light: rgba(115, 0, 255, 0.10);
    --hrk-lp-text-primary: #1E0D36;
    --hrk-lp-text-secondary: #555555;
    --hrk-lp-text-tertiary: #6b6b6b;
    --hrk-lp-border: #e0e0e0;
    --hrk-lp-bg-card: #ffffff;
    --hrk-lp-radius-card: 12px;
    --hrk-lp-radius-tag: 4px;
    --hrk-lp-shadow-card: 0 10px 20px rgba(41, 51, 61, 0.1);
    --hrk-lp-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.hrk-latest-practices-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--hrk-lp-text-primary);
    margin: 0 0 16px;
}

.hrk-latest-practices-empty {
    font-family: 'Nunito Sans', sans-serif;
    color: var(--hrk-lp-text-secondary);
}

.hrk-latest-practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hrk-latest-practices-item {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.hrk-latest-practices-card {
    position: relative;
    width: 100%;
    background: var(--hrk-lp-bg-card);
    border-radius: var(--hrk-lp-radius-card);
    box-shadow: var(--hrk-lp-shadow-card);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.15s;
    outline: none;
}

.hrk-latest-practices-card:hover,
.hrk-latest-practices-card:focus-visible {
    box-shadow: var(--hrk-lp-shadow-hover);
    transform: translateY(-1px);
}

.hrk-latest-practices-card:focus-visible {
    outline: 2px solid var(--hrk-lp-accent);
    outline-offset: 2px;
}

.hrk-latest-practices-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    max-width: calc(100% - 56px);
}

.hrk-latest-practices-scenario {
    display: inline-block;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hrk-lp-accent);
    background: var(--hrk-lp-accent-light);
    padding: 2px 8px;
    border-radius: var(--hrk-lp-radius-tag);
}

.hrk-latest-practices-new {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-block;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #ffffff;
    background: #FF6D7F;
    padding: 2px 8px;
    border-radius: var(--hrk-lp-radius-tag);
}

.hrk-latest-practices-heading {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--hrk-lp-text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.hrk-latest-practices-meta {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--hrk-lp-text-secondary);
    margin: 0;
}

.hrk-latest-practices-desc {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    color: var(--hrk-lp-text-secondary);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 4px 0 0;
}
