.tresss-linkedin {
    --tlf-accent: #4c8dff;
    --tlf-border: rgba(255, 255, 255, .14);
    --tlf-muted: rgba(255, 255, 255, .65);
    width: 100%;
    font-family: inherit;
    color: #e2e8f0;
}

.tresss-linkedin__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.tresss-linkedin__card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--tlf-border);
    background: #131c2e;
    color: #e2e8f0;
    transition: border-color .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}

.tresss-linkedin__media {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: rgba(255, 255, 255, .04);
}

.tresss-linkedin__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.tresss-linkedin__card:hover .tresss-linkedin__media img { transform: scale(1.015); }

.tresss-linkedin__body {
    padding: 22px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.tresss-linkedin__date {
    display: block;
    margin: 0 0 12px;
    font-size: .82em;
    line-height: 1.4;
    color: #94a3b8;
}

.tresss-linkedin__text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    margin: 0 0 18px;
    line-height: 1.55;
    color: #e2e8f0;
    white-space: pre-line;
}

.tresss-linkedin__link {
    margin-top: auto;
    color: #60a5fa;
    font-weight: 600;
    text-decoration: none;
}

.tresss-linkedin__link:hover,
.tresss-linkedin__link:focus { text-decoration: underline; }

.tresss-linkedin__empty { margin: 0; }

@media (max-width: 1024px) {
    .tresss-linkedin__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .tresss-linkedin__grid { grid-template-columns: 1fr; gap: 20px; }
    .tresss-linkedin__body { padding: 20px; }
}

/* Keep text readable even when the active theme applies global content colors. */
.tresss-linkedin .tresss-linkedin__card .tresss-linkedin__text {
    color: #e2e8f0;
}

.tresss-linkedin .tresss-linkedin__card .tresss-linkedin__date {
    color: #94a3b8;
}

.tresss-linkedin .tresss-linkedin__card .tresss-linkedin__link {
    color: #60a5fa;
}

.tresss-linkedin .tresss-linkedin__card:hover {
    border-color: rgba(96, 165, 250, .45);
    box-shadow: 0 8px 30px rgba(37, 99, 235, .12);
}
