/*
    Blog: what only the blog has

    The column (.ck-reading), the page header (.ck-back-link, .ck-page-title, .ck-page-subtitle)
    and the article typography (.ck-prose) live in common.css, shared with the docs.
*/


/*
    POST HEADER
*/

.ck-post-date {
    display: block;
    font-size: 0.9375rem;
    color: var(--ck-text-2);
}




/*
    POST BODY
*/

.ck-post-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/*
    Previous and next links at the foot of a post, from the index's own list. Flat, not cards: two
    lines, the direction with its arrow and then the title, in the index card's own title type
    (.ck-post-card-title), so a title reads the same everywhere. Previous is the older post, on the
    left, and next the newer, on the right, like a timeline. margin-left: auto keeps a lone Next on
    the right, on the oldest post.
*/
.ck-post-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-top: 3rem;
    /*padding-top: 1.5rem;
    border-top: 1px solid var(--ck-border-subtle);*/
}
.ck-post-nav a {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    text-decoration: none;
}
.ck-post-nav-next {
    margin-left: auto;
    align-items: flex-end;
    text-align: right;
}
.ck-post-nav-dir {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ck-text-3);
}
.ck-post-nav a:hover .ck-post-nav-dir,
.ck-post-nav a:hover .ck-post-card-title {
    color: var(--ck-accent);
}




/*
    INDEX

    .ck-post-card takes its surface, border, radius and hover from .ck-tool-card in common.css,
    copied verbatim — if one changes, change the other. Its type is sized for a full-width row
    rather than the tool card's small tile.
*/

.ck-post-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ck-post-card {
    display: block;
    padding: 1rem 1.125rem;
    background: var(--ck-surface);
    border: 1px solid var(--ck-border-subtle);
    border-radius: var(--ck-radius);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
.ck-post-card:hover {
    box-shadow: var(--ck-shadow);
    border-color: var(--ck-border);
    transform: translateY(-4px);
    color: inherit;
}

.ck-post-card-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ck-text-1);
}

.ck-post-card-date {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.8125rem;
    color: var(--ck-text-3);
}

/* The post's whole $page_description, never clamped, by decision */
.ck-post-card-desc {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25;
    color: var(--ck-text-2);
}
