/*
 * LWN Stories — Front-end Styles
 * Matches the HCS design language: teal accent, navy text, card grid.
 */

/* ── Wrapper ────────────────────────────────────────────────────────────────── */
.lwn-stories-wrap {
    width: 100%;
}

/* ── Filter Pills ───────────────────────────────────────────────────────────── */
.lwn-stories-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
    justify-content: center;
}

.lwn-stories-filter {
    padding: 8px 20px;
    border: 2px solid #00a9b5; /* HCS teal */
    border-radius: 100px;
    background: transparent;
    color: #00a9b5;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    letter-spacing: 0.02em;
}

.lwn-stories-filter:hover,
.lwn-stories-filter--active,
.lwn-stories-filter[aria-pressed="true"] {
    background: #00a9b5;
    color: #ffffff;
}

/* ── Card Grid ──────────────────────────────────────────────────────────────── */
.lwn-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .lwn-stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .lwn-stories-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Individual Card ────────────────────────────────────────────────────────── */
.lwn-story-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lwn-story-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Hidden state — toggled by JS filter */
.lwn-story-card[hidden] {
    display: none;
}

/* ── Category Label ─────────────────────────────────────────────────────────── */
.lwn-story-card__category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #00a9b5; /* HCS teal */
}

/* ── Person Name ────────────────────────────────────────────────────────────── */
.lwn-story-card__name {
    font-size: 20px;
    font-weight: 700;
    color: #1a2744; /* HCS navy */
    margin: 0;
    line-height: 1.3;
}

.lwn-story-card__name a {
    color: inherit;
    text-decoration: none;
}

.lwn-story-card__name a:hover {
    color: #00a9b5;
}

/* ── Pull Quote ─────────────────────────────────────────────────────────────── */
.lwn-story-card__quote {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
    padding: 0;
    border: none;
    font-style: italic;
    position: relative;
    flex-grow: 1; /* pushes the link to the bottom of the card */

    /* Large decorative open-quote mark */
    padding-top: 28px;
}

.lwn-story-card__quote::before {
    content: '\201C'; /* left double quotation mark */
    font-size: 52px;
    line-height: 1;
    color: #00a9b5;
    position: absolute;
    top: -8px;
    left: 0;
    font-style: normal;
    font-family: Georgia, serif;
}

/* Clamp to 3 lines on the archive to keep cards consistent height */
.lwn-story-card__quote {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Read More Link ─────────────────────────────────────────────────────────── */
.lwn-story-card__link {
    font-size: 14px;
    font-weight: 600;
    color: #00a9b5;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s ease;
}

.lwn-story-card__link:hover {
    color: #1a2744;
}

/* ── Empty / No Results States ──────────────────────────────────────────────── */
.lwn-stories-empty,
.lwn-stories-no-results {
    text-align: center;
    padding: 48px 24px;
    color: #666;
    font-size: 16px;
}
