/**
 * Chunky post-card styles for category archive pages.
 * Mirrors the .esl-tl__lesson card design used by the landing pages,
 * but laid out for a responsive grid (not a horizontal scroll track).
 */

:root {
    --pc-deep:        #1A1A1A;
    --pc-cream:       #FFF8EE;
    --pc-card:        #FFFFFF;
    --pc-accent:      #F77205;
    --pc-accent2:     #F78B33;
    --pc-accent-soft: #F8BA7D;
    --pc-cream-light: #FCE4CB;
    --pc-cream-warm:  #FFEAD3;
    --pc-muted:       rgba(26,26,26,0.62);
}

/* Grid wrapper around the cards */
.esl-pc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 0 32px;
}
@media (min-width: 720px)  { .esl-pc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .esl-pc-grid { grid-template-columns: repeat(3, 1fr); } }

/* The card itself */
.esl-pc-card {
    background: var(--pc-card);
    border: 2.5px solid var(--pc-deep);
    border-radius: 22px;
    box-shadow: 5px 5px 0 var(--pc-deep);
    overflow: hidden;
    text-decoration: none;
    color: var(--pc-deep);
    display: flex;
    flex-direction: column;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    transition: transform .15s ease, box-shadow .15s ease;
}
.esl-pc-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--pc-deep);
    color: var(--pc-deep);
}

/* HEAD: tinted header with glyph + skill + eyebrow + title */
.esl-pc-card__head {
    padding: 20px 22px 18px;
    border-bottom: 2.5px solid var(--pc-deep);
    position: relative;
    min-height: 120px;
}
.esl-pc-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.esl-pc-card__chip {
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 1.5px 1.5px 0 var(--pc-deep);
    line-height: 0;
    flex: 0 0 28px;
}
.esl-pc-card__skill {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 10px;
    background: var(--pc-card);
    color: var(--pc-deep);
    border: 2px solid var(--pc-deep);
    display: grid;
    place-items: center;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 13px;
}
.esl-pc-card__kind {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    opacity: 0.9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}
.esl-pc-card__title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

/* Tone variants — match the test-landing palette */
.esl-pc-card__head.tone-card        { background: var(--pc-card);        color: var(--pc-deep); }
.esl-pc-card__head.tone-cream       { background: var(--pc-cream);       color: var(--pc-deep); }
.esl-pc-card__head.tone-cream-warm  { background: var(--pc-cream-warm);  color: var(--pc-deep); }
.esl-pc-card__head.tone-cream-light { background: var(--pc-cream-light); color: var(--pc-deep); }
.esl-pc-card__head.tone-accent-soft { background: var(--pc-accent-soft); color: var(--pc-deep); }
.esl-pc-card__head.tone-accent2     { background: var(--pc-accent2);     color: var(--pc-cream); }
.esl-pc-card__head.tone-accent      { background: var(--pc-accent);      color: var(--pc-cream); }

/* BODY: stats + "Read →" footer */
.esl-pc-card__body {
    padding: 14px 18px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.esl-pc-card__stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--pc-muted);
}
.esl-pc-card__read {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--pc-accent);
}
