/* Shared card and grid styles for latest posts and project overview. */
.teog-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: stretch;
}
.teog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.teog-card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.teog-card:hover .teog-card-title { text-decoration: underline; }
.teog-card-link { position: absolute; inset: 0; z-index: 2; }
.teog-card-link:focus-visible { outline: 3px solid #0073aa; outline-offset: -3px; }
.teog-card-image { aspect-ratio: 16 / 9; overflow: hidden; }
.teog-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.teog-card-content { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.teog-card-title { margin: 0 0 .4rem; font-size: 1.2rem; line-height: 1.3; }
.teog-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .8rem; font-size: .85rem; color: #777; }
.teog-card-icons { display: inline-flex; align-items: center; gap: .35rem; }
.teog-card-icon img { width: 26px; height: 26px; object-fit: contain; display: block; }
.teog-card-excerpt { margin: auto 0 0; font-size: .95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.teog-pagination { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.teog-pagination .page-numbers { padding: 6px 10px; border: 1px solid var(--teog-color-border, #e5e5e5); border-radius: var(--teog-radius, 6px); text-decoration: none; }
.teog-pagination .current { background: var(--teog-color-text, #222); color: #fff; }
@media (max-width: 900px) { .teog-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .teog-card-grid { grid-template-columns: minmax(0, 1fr); } }

/* Project-specific metadata position, using the shared card styles. */
.teog-card-meta--above-image {
    padding: .8rem 1.2rem;
    margin: 0;
    min-height: 26px;
    justify-content: space-between;
    gap: .5rem 1rem;
}

/* Working Group links sit above the full-card project link. */
.teog-card-wg-link { position: relative; z-index: 3; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; }
.teog-card-wg-link:hover { opacity: .75; }
.teog-card-wg-link:focus-visible { outline: 3px solid #0073aa; outline-offset: 3px; }

/* Separate running and completed projects in the overview. */
.teog-project-group-heading { margin: 2.5rem 0 1.25rem; }
.teog-section > .teog-project-group-heading:first-child { margin-top: 0; }
