/* ──────────────────────────────────────────────────────────────────────────
   KL Stories Landing Page — [kl_stories_page] shortcode
   Tokens are inherited from kl-global.css (child theme).
   ────────────────────────────────────────────────────────────────────────── */

/* ── Grid wrapper ─────────────────────────────────────────────────────────── */

.kl-stories-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 0;
    margin: 0;
}

.kl-stories-empty {
    color: var(--text-mid);
    font-style: italic;
    text-align: center;
    padding: 48px 0;
}

/* ── Story row ────────────────────────────────────────────────────────────── */

.kl-story-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;

    /* KL gradient border */
    background:
        linear-gradient(var(--white, #fff), var(--white, #fff)) padding-box,
        linear-gradient(135deg, #EE7203 0%, #FCEE21 50%, #89C9B2 100%) border-box;
    border: 2px solid transparent;

    box-shadow: 0 4px 24px rgba(14, 57, 87, 0.08);
    transition: box-shadow 0.2s;
}

.kl-story-row:hover {
    box-shadow: 0 8px 36px rgba(14, 57, 87, 0.13);
}

/* ── Photo column ─────────────────────────────────────────────────────────── */

.kl-story-row__media {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        90deg,
        #FCEE21 0%, #FCEE21 33%,
        #EE7203 33%, #EE7203 66%,
        #89C9B2 66%, #89C9B2 100%
    );
    min-height: 280px;
}

.kl-story-row__media-inner {
    position: absolute;
    inset: 0;
}

.kl-story-row__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ── Text column ──────────────────────────────────────────────────────────── */

.kl-story-row__content {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--white, #fff);
}

.kl-story-row__content--full {
    grid-column: 1 / -1;
}

/* ── Header (name + service tag) ─────────────────────────────────────────── */

.kl-story-row__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.kl-story-row__name {
    font-family: var(--font-serif, 'DM Serif Text', Georgia, serif);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: var(--navy, #0E3957);
    line-height: 1.15;
    margin: 0;
}

/* ── Service tag ──────────────────────────────────────────────────────────── */

.kl-story-row__service-tag {
    display: inline-block;
    font-family: var(--font-sans, 'Manrope', sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    background: var(--orange, #EE7203);
    color: var(--white, #fff);
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
    margin-top: 4px;
    transition: background 0.15s;
}

a.kl-story-row__service-tag:hover {
    background: #c55f00;
    color: var(--white, #fff);
    text-decoration: none;
}

.kl-story-row__service-tag--plain {
    cursor: default;
}

/* ── Long description ─────────────────────────────────────────────────────── */

.kl-story-row__long-desc {
    font-family: var(--font-sans, 'Manrope', sans-serif);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-dark, #1a2a35);
}

.kl-story-row__long-desc p {
    margin: 0 0 1em;
}

.kl-story-row__long-desc p:last-child {
    margin-bottom: 0;
}

.kl-story-row__long-desc a {
    color: var(--orange, #EE7203);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kl-story-row__long-desc a:hover {
    color: #c55f00;
}

.kl-story-row__long-desc strong { color: var(--navy, #0E3957); }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 800px) {
    .kl-story-row {
        grid-template-columns: 1fr;
    }

    .kl-story-row__media {
        min-height: 240px;
        position: relative;
    }

    .kl-story-row__content {
        padding: 24px 24px 28px;
    }
}

@media (max-width: 480px) {
    .kl-story-row__header {
        flex-direction: column;
        gap: 10px;
    }

    .kl-story-row__content {
        padding: 20px 18px 24px;
    }
}
