/* Insights — public listing + article chrome.
 *
 * Scope note: this styles only the page *around* the article. The article body
 * ships its own inline styles and its own <style id="ed-responsive-overrides">
 * block from the editor, so nothing here may set type or colour inside
 * .insights-article beyond the wrapper — doing so would fight the author's
 * per-breakpoint layout.
 *
 * Tokens mirror the editor's brand palette so the listing reads as the same
 * publication as the articles it links to.
 */

.define-insights {
    --ins-primary: #6B3FE5;
    --ins-primary-deep: #5827C7;
    --ins-cyan: #5BE3FF;
    --ins-ink: #1A1B3A;
    --ins-ink-muted: #5B5C70;
    --ins-border: rgba(107, 63, 229, .16);
    --ins-card-bg: #fff;

    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 72px;
    color: var(--ins-ink);
    font-family: Roboto, Lato, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------------------------------------------------------------- hero */

.insights-hero {
    padding: 18px 0 26px;
    border-bottom: 1px solid var(--ins-border);
    margin-bottom: 28px;
}

.insights-hero h1 {
    font-family: "Barlow Condensed", Roboto, sans-serif;
    font-weight: 700;
    font-size: clamp(38px, 6vw, 60px);
    line-height: 1.02;
    letter-spacing: .4px;
    text-transform: uppercase;
    margin: 0 0 8px;
    color: var(--ins-ink);
}

.insights-hero p {
    margin: 0;
    font-size: 16px;
    color: var(--ins-ink-muted);
    max-width: 60ch;
}

/* ---------------------------------------------------------------- grid */

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.insights-card {
    display: flex;
    flex-direction: column;
    background: var(--ins-card-bg);
    border: 1px solid var(--ins-border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease;
}

.insights-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(76, 29, 149, .14);
}

.insights-card__art {
    aspect-ratio: 16 / 9;
    background: #f3effb;
    overflow: hidden;
}

.insights-card__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.insights-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.insights-card__cat {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--ins-primary);
}

.insights-card__title {
    font-family: "Barlow Condensed", Roboto, sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.14;
    margin: 0;
}

.insights-card__excerpt {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ins-ink-muted);
    margin: 0;
    /* Excerpts arrive at 280 chars; clamp so uneven lengths don't ragged the grid. */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insights-card__meta {
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11.5px;
    color: #8a8980;
}

/* ---------------------------------------------------------------- article */

.insights-article {
    /* The authored .page-shell centres itself; this only provides the gutter. */
    margin: 0 auto;
}

.insights-back {
    display: inline-block;
    margin: 4px 0 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ins-primary);
    text-decoration: none;
}

.insights-back:hover {
    text-decoration: underline;
}

.insights-author-actions {
    margin: 34px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--ins-border);
}

.insights-author-actions a {
    font-size: 13px;
    font-weight: 500;
    color: var(--ins-primary-deep);
    text-decoration: none;
}

.insights-author-actions a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------------- misc */

.insights-empty {
    padding: 60px 0;
    text-align: center;
    color: var(--ins-ink-muted);
}

.insights-empty h1 {
    font-family: "Barlow Condensed", Roboto, sans-serif;
    font-size: 34px;
    color: var(--ins-ink);
    margin: 0 0 8px;
}

.insights-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 38px;
    font-size: 13px;
    color: var(--ins-ink-muted);
}

.insights-pager a {
    color: var(--ins-primary);
    text-decoration: none;
    font-weight: 500;
}

.insights-pager a:hover {
    text-decoration: underline;
}

@media (max-width: 760px) {
    .define-insights {
        padding: 18px 14px 56px;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }
}
