/* Social posts landing: caption boxes for the "Written for you" animation, plus text clamp helpers. */
.pm-clamp {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--pm-lines, 3);
}

.pm-pre { white-space: pre-line; }

/* Compact caption boxes, one per platform, for the copy animation */
.pm-box {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid #e4e6eb;
    border-radius: 14px;
    background: #fff;
    color: #0f1419;
    font: 400 12.5px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 14px 34px rgba(20, 15, 5, 0.1);
}

.pm-box-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.pm-box-head .posts-platform-icon {
    width: 26px;
    height: 26px;
    padding: 5px;
    border-radius: 8px;
}


.pm-box-head small {
    margin-left: auto;
    color: #65676b;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.pm-box-text {
    min-height: 6em;
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f5f6f7;
    font-size: 13px;
    line-height: 1.55;
}

.pm-box-text .pm-tag { color: #00376b; font-weight: 500; }
.pm-box-li .pm-box-text .pm-tag { color: #0a66c2; font-weight: 600; }
.pm-box-fb .pm-box-text .pm-tag { color: #1877f2; }

.pm-box-who {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.25;
}

.pm-box-who strong {
    overflow: hidden;
    color: #65676b;
    font-size: 11.5px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pm-box-ig .pm-box-text { background: #fafafa; }
.pm-box-li .pm-box-text { background: #f3f6f8; }
