.post-content-column {
    min-width: 0;
}

.post-rubric-menu {
    max-width: calc(100vw - 4rem);
}

.post-context-card {
    --context-surface: #fff;
    --context-border: #e2e8f0;
    --context-title: #111827;
    --context-muted: #64748b;
    --context-accent: #16794c;
    --context-accent-soft: #e7f4ed;
    --context-line: #cbe3d5;
    --context-divider: #f1f5f9;
    --context-tag: #475569;
    background: var(--context-surface);
    border: 1px solid var(--context-border);
    border-radius: 10px;
    margin-top: 16px;
    padding: 18px 20px;
    overflow-wrap: anywhere;
    transition: background-color .2s, border-color .2s, color .2s;
}

.dark .post-context-card {
    --context-surface: #0f172a;
    --context-border: #1e293b;
    --context-title: #f1f5f9;
    --context-muted: #94a3b8;
    --context-accent: #6ee7b7;
    --context-accent-soft: #143c30;
    --context-line: #2d5b4b;
    --context-divider: #1e293b;
    --context-tag: #cbd5e1;
}

.post-context-heading {
    margin: 0 0 12px;
    color: var(--context-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.post-context-timeline,
.post-context-related {
    margin: 0;
    padding: 0;
    list-style: none;
}

.post-context-timeline {
    padding-left: 22px;
}

.post-context-timeline > li {
    position: relative;
}

.post-context-timeline > li:not(:last-child) {
    padding-bottom: 12px;
}

.post-context-timeline > li:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: -10px;
    left: -16px;
    width: 2px;
    background: var(--context-line);
}

.post-context-dot {
    position: absolute;
    top: 4px;
    left: -21px;
    width: 12px;
    height: 12px;
    border: 2.5px solid var(--context-accent);
    border-radius: 50%;
    background: var(--context-surface);
}

.post-context-current .post-context-dot {
    background: var(--context-accent);
    box-shadow: 0 0 0 3px var(--context-accent-soft);
}

.post-context-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    font-size: 11.5px;
    color: var(--context-muted);
}

.post-context-now {
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--context-accent-soft);
    color: var(--context-accent);
    font-size: 10.5px;
    font-weight: 700;
}

.post-context-title {
    display: block;
    color: var(--context-title);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.post-context-current .post-context-title,
a.post-context-title:hover,
.post-context-row:hover .post-context-title {
    color: var(--context-accent);
}

.post-context-card a:focus-visible {
    outline: 2px solid var(--context-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.post-context-related > li + li {
    border-top: 1px solid var(--context-divider);
}

.post-context-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
}

.post-context-related > li:first-child .post-context-row {
    padding-top: 2px;
}

.post-context-related > li:last-child .post-context-row {
    padding-bottom: 0;
}

.post-context-copy {
    flex: 1;
    min-width: 0;
}

.post-context-row .post-context-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-height: 1.3;
}

.post-context-row .post-context-meta {
    margin-top: 4px;
}

.post-context-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 5px;
}

.post-context-tags span {
    max-width: 100%;
    overflow: hidden;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--context-divider);
    color: var(--context-tag);
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-context-image {
    flex: 0 0 auto;
    width: 76px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

@media (width < 64rem) {
    .post-context-card { padding: 14px; }
    .post-context-title { font-size: 14px; }
    .post-context-image { width: 64px; height: 54px; }
}
