/* ─── Lisbon blog ───
 * Cards: white, inset rounded photo, category · read-time meta, heading-font title, excerpt, text link.
 * Post: a sticky white "on this page" card beside one reading column (by-line, article, author card).
 */
.ocf-svc-grid.ocf-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ocf-grid-gap);
}

.ocf-article-card {
    display: flex;
    flex-direction: column;
    padding: 8px;
    border-radius: var(--card-radius);
    background: var(--lisbon-card);
    color: var(--ocf-body);
}

.ocf-article-card[hidden] { display: none; }

.ocf-article-card__media {
    display: block;
    overflow: hidden;
    border-radius: calc(var(--card-radius) - 8px);
}

.ocf-article-card__img {
    width: 100%;
    aspect-ratio: 400 / 250;
    object-fit: cover;
    transition: transform calc(var(--duration) * 2) var(--ease);
}

.ocf-article-card:hover .ocf-article-card__img { transform: scale(1.04); }

.ocf-article-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 22px 16px 18px;
}

.ocf-article-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0;
    color: var(--ocf-link);
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ocf-article-card__meta > * + *::before { content: "·"; margin-right: 8px; }

.ocf-article-card h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: var(--ocf-heading);
    font-size: clamp(20px, 1.6vw, 22px);
    line-height: 1.2;
}

.ocf-article-card h3 a:hover { color: var(--ocf-link); }

.ocf-article-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: calc(var(--font-body-size) * 0.94);
    line-height: 1.5;
}

.ocf-article-card .ocf-text-link { margin-top: auto; padding-top: 4px; }

.ocf-journal .ocf-filter-bar { margin: -16px 0 32px; }

/* Post layout: 260px sticky contents card, then the reading column. */
.ocf-article .ocf-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 760px);
    gap: clamp(32px, 4vw, 56px);
    align-items: start;
}

.ocf-article .ocf-article-layout--single { grid-template-columns: minmax(0, 820px); justify-content: center; }

.ocf-article-aside { position: sticky; top: var(--lisbon-sticky-top); }

.ocf-article-toc {
    padding: 24px;
    border-radius: 24px;
    background: var(--lisbon-card);
}

.ocf-article-toc__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ocf-article-toc__title {
    margin: 0;
    color: var(--ocf-link);
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ocf-article-toc__toggle { display: none; padding: 0; border: 0; background: none; color: var(--ocf-heading); }
.ocf-article-toc__toggle svg { width: 18px; height: 18px; }

.ocf-article-toc__list,
.ocf-article-toc__list ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ocf-article-toc__list { margin-top: 14px; }
.ocf-article-toc.is-collapsed .ocf-article-toc__list { display: none; }

.ocf-article-toc__list a {
    color: var(--ocf-body);
    font-size: calc(var(--font-body-size) * 0.88);
    line-height: 1.35;
}

.ocf-article-toc__list li:first-child > a { color: var(--ocf-heading); font-weight: var(--font-weight-semibold); }
.ocf-article-toc__list a:hover { color: var(--ocf-link); }
.ocf-article-toc__list ol { margin-top: 8px; padding-left: 12px; }

.ocf-article-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0 0 16px;
    color: var(--ocf-heading);
    font-size: calc(var(--font-body-size) * 0.82);
    font-weight: var(--font-weight-medium);
}

.ocf-article-byline > * + *::before { content: "·"; margin-right: 8px; color: var(--ocf-body); }

.ocf-article .ocf-longform h2 {
    margin-top: calc(var(--ocf-grid-gap) * 1.5);
    font-size: clamp(26px, 2.4vw, 32px);
}

.ocf-article .ocf-longform > h2:first-child,
.ocf-article .ocf-longform > :first-child > h2:first-child {
    font-size: clamp(30px, 3vw, 40px);
    font-weight: var(--ocf-font-h2-weight, 800);
    letter-spacing: var(--lisbon-h2-track);
    line-height: 1.05;
}

.ocf-article-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
    padding: 20px 22px;
    border-radius: 20px;
    background: var(--ocf-bg-alt);
}

.ocf-article-author__badge {
    display: inline-grid;
    flex-shrink: 0;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--ocf-primary);
    color: var(--ocf-primary-contrast);
    font-family: var(--ocf-font-heading), system-ui, sans-serif;
    font-weight: var(--ocf-font-h3-weight, 700);
}

.ocf-article-author p { margin: 0; }
.ocf-article-author__label { color: var(--ocf-body); font-size: var(--ocf-font-small-size); }
.ocf-article-author__name { color: var(--ocf-heading); font-weight: var(--font-weight-bold); }

@media (max-width: 1023px) {
    .ocf-svc-grid.ocf-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ocf-article .ocf-article-layout { grid-template-columns: minmax(0, 1fr); }
    .ocf-article-aside { position: static; }
    .ocf-article-toc__toggle { display: inline-grid; }
}

@media (max-width: 639px) {
    .ocf-svc-grid.ocf-article-grid { grid-template-columns: minmax(0, 1fr); }
}
