/* ============================================================
   DG KNITTING — "FROM OUR CHANNELS" STRIP (homepage)
   A glance at the latest reels, videos and posts, placed low on the
   page so it supports the company story rather than competing with it.
   Design-system tokens only. No JavaScript, no third-party embeds:
   every card is a plain link with a lazy-loaded thumbnail.
   ============================================================ */

.dg-social-strip {
    padding: var(--sp-8) 0;
    background: var(--paper);
}

/* Deliberately quieter than the main sections' headings. */
.dg-social-strip .section-header {
    margin-bottom: var(--sp-6);
}

.dg-social-strip .section-title {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    margin-bottom: var(--sp-2);
}

.dg-social-strip .dg-ss-sub {
    color: var(--ink-3);
    max-width: 60ch;
    margin: 0 auto;
    font-size: var(--fs-base);
    line-height: 1.6;
}

/* ------------------------------------------------------------ cards */
.dg-ss-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-4);
}

.dg-ss-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    box-shadow: var(--sh-1);
    transition: box-shadow .2s ease, transform .2s ease;
}

.dg-ss-card:hover {
    box-shadow: var(--sh-2);
    transform: translateY(-2px);
    color: inherit;
}

.dg-ss-card:focus-visible {
    outline: 3px solid var(--crimson);
    outline-offset: 3px;
}

.dg-ss-thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    background: var(--paper-3);
    overflow: hidden;
}

.dg-ss-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Platform + format chip, top-left of the thumbnail */
.dg-ss-chip {
    position: absolute;
    left: var(--sp-2);
    top: var(--sp-2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(31, 28, 27, .78);
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dg-ss-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--crimson);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    padding-left: 3px;
    box-shadow: var(--sh-2);
    transition: transform .2s ease;
}

.dg-ss-card:hover .dg-ss-play {
    transform: translate(-50%, -50%) scale(1.08);
}

.dg-ss-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--sp-3) var(--sp-4) var(--sp-4);
}

.dg-ss-date {
    font-size: var(--fs-xs);
    color: var(--ink-4);
    margin: 0 0 2px;
}

.dg-ss-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    margin: 0 0 var(--sp-2);
}

.dg-ss-cta {
    margin-top: auto;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--crimson);
}

/* Infographic covers: keep the headline at the top in view when cropped. */
.dg-ss-thumb-top img {
    object-position: top;
}

/* ------------------------------------------------- channel row */
.dg-ss-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    margin-top: var(--sp-6);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--line);
}

.dg-ss-channels {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.dg-ss-channels a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-2);
    font-size: var(--fs-sm);
    font-weight: 500;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}

.dg-ss-channels a:hover {
    border-color: var(--crimson);
    color: var(--crimson);
}

.dg-ss-channels i,
.dg-ss-channels svg {
    color: var(--crimson);
    width: 1em;
    height: 1em;
}

.dg-ss-all {
    font-weight: 600;
    color: var(--crimson);
    text-decoration: none;
    white-space: nowrap;
}

.dg-ss-all:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------ responsive */
@media (max-width: 991px) {
    .dg-ss-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Phones: a swipeable row so the strip stays short. */
@media (max-width: 575px) {
    .dg-social-strip {
        padding: var(--sp-7) 0;
    }

    .dg-ss-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 15px;
        gap: var(--sp-3);
        margin: 0 -15px;
        padding: 0 15px var(--sp-2);
        scrollbar-width: thin;
    }

    .dg-ss-grid > li {
        flex: 0 0 72%;
        scroll-snap-align: start;
    }

    .dg-ss-thumb {
        aspect-ratio: 1 / 1;
    }

    .dg-ss-foot {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dg-ss-card,
    .dg-ss-play {
        transition: none;
    }
}
