/* Home page: Social Posts summary under the product cards. The pieces come from the Social Posts page
   (social-posts-sections.css, social-posts-mockups.css); this file only lays them out. */
.home-social-new {
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 5px;
    background: #ff9000;
    color: #fff;
    font-style: normal;
    letter-spacing: 0.04em;
}

.home-social-cta {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    margin-top: 28px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #ff9000;
    color: #1e1e1e;
    font: 600 16px/1 'IBM Plex Sans', sans-serif;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-social-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 144, 0, 0.35); }

/* Shared tiles */
.home-social-bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.home-social-tile {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--vgvf-border, rgba(0, 0, 0, 0.08));
    border-radius: 22px;
    background: #fff;
}

.home-social-tile h3 { margin: 0; font: 700 21px/1.25 'IBM Plex Sans', sans-serif; letter-spacing: -0.01em; }
.home-social-tile.is-designs { padding-right: 0; padding-left: 0; }
.home-social-tile.is-designs > :first-child { padding: 0 22px; }
.home-social-tile .posts-strip { margin: 0; padding: 6px 0; }
.home-social-tile .posts-strip-item img { width: 150px; height: 188px; }
.home-social-boxes { display: grid; gap: 10px; }
.home-social-boxes .pm-box { box-shadow: none; }

.home-social-boxes .pm-box-text {
    min-height: 0;
    max-height: 6.6em;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 70%, transparent);
    mask-image: linear-gradient(#000 70%, transparent);
}

.home-social-tile .posts-campaign-cal { margin: 0; padding: 12px; box-shadow: none; }
.home-social-tile .posts-campaign-month { display: none; }
.home-social-tile .posts-campaign-head,
.home-social-tile .posts-campaign-grid { gap: 5px; }
.home-social-tile .posts-campaign-day { padding: 4px; border-radius: 8px; }
.home-social-tile.is-week { background: #fff; }

/* Hero header with the formats fanning out, then designs, the week and the captions */
.home-social-bento .is-hero {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 24px;
    padding: 44px 40px;
    background: radial-gradient(circle at 75% 40%, #fff6e8 0, #fff 60%);
}
.home-social-bento .is-hero h2 { margin: 12px 0 0; font: 700 clamp(32px, 3.6vw, 52px)/1.04 'IBM Plex Sans', sans-serif; letter-spacing: -0.035em; }
.home-social-bento .is-hero p:not(.video-feature-eyebrow) { margin: 16px 0 0; color: var(--vgvf-copy, #5a5a5a); font-size: 18px; line-height: 1.5; }
.home-social-hero-copy { min-width: 0; }
.home-social-bento .is-designs { grid-column: 1 / -1; }
.home-social-bento .is-week { grid-column: 1 / 3; }

/* The format fan: cards start stacked behind the reel and spread out when the section comes into view. */
.home-social-formats {
    display: flex;
    min-height: 400px;
    align-items: center;
    justify-content: center;
}

.home-social-format {
    position: relative;
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 -4px;
    transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 500ms ease;
}

.home-social-format-media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #f1efe9;
    box-shadow: 0 22px 50px rgba(20, 15, 5, 0.2);
}

.home-social-format-media img,
.home-social-format-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-social-format.is-square .home-social-format-media { width: 136px; aspect-ratio: 1; }
.home-social-format.is-feed .home-social-format-media { width: 156px; aspect-ratio: 4 / 5; }
.home-social-format.is-reel { z-index: 2; }
.home-social-format.is-reel .home-social-format-media { width: 176px; aspect-ratio: 9 / 16; border-radius: 18px; }
.home-social-format.is-link .home-social-format-media { width: 208px; aspect-ratio: 1200 / 630; }
.home-social-format.is-square { z-index: 0; transform: translateY(26px) rotate(-7deg); }
.home-social-format.is-feed { z-index: 1; transform: translateY(8px) rotate(-3deg); }
.home-social-format.is-link { z-index: 1; transform: translateY(30px) rotate(4deg); }

.home-social-format figcaption {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(20, 15, 5, 0.08);
    font: 600 12px/1.3 Inter, sans-serif;
    white-space: nowrap;
}

.home-social-format figcaption b { color: #8a8a8a; font-weight: 500; }
.home-social-format .posts-ratio-glyph { height: 12px; border-width: 1.4px; }
.home-social-format .posts-ratio-glyph[data-ratio="4:5"] { width: 9.6px; }
.home-social-format .posts-ratio-glyph[data-ratio="9:16"] { width: 6.8px; }
.home-social-format .posts-ratio-glyph[data-ratio="1:1"] { width: 12px; }
.home-social-format .posts-ratio-glyph[data-ratio="1.91:1"] { width: 17px; height: 9px; }

.home-social:not(.is-visible) .home-social-format.is-square { transform: translateX(150%) rotate(0); }
.home-social:not(.is-visible) .home-social-format.is-feed { transform: translateX(70%) rotate(0); }
.home-social:not(.is-visible) .home-social-format.is-link { transform: translateX(-80%) rotate(0); }
.home-social:not(.is-visible) .home-social-format:not(.is-reel) { opacity: 0; }

@media (max-width: 1100px) {
    .home-social-bento { grid-template-columns: 1fr 1fr; }
    .home-social-bento .is-hero { grid-template-columns: minmax(0, 1fr); }
    .home-social-bento .is-hero,
    .home-social-bento .is-designs,
    .home-social-bento .is-week { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .home-social-bento { grid-template-columns: 1fr; }
    .home-social-bento .is-hero { padding: 26px 18px; }
    /* zoom shrinks the layout box too, unlike a transform, so the fan fits the phone width. */
    .home-social-formats { min-height: 0; padding: 20px 0 10px; zoom: 0.56; }
}

.home-social-hero-copy h2 em { font-style: normal; text-decoration: underline; text-decoration-color: #ff9000; text-decoration-thickness: 3px; text-underline-offset: 6px; }
