:root {
    --snap-font: "Poppins", "Segoe UI", sans-serif;
}

.snap-Download-details {
    padding: 4rem 0 5rem;
    background: #fff;
    color: #111;
    font-family: var(--snap-font);
}

.snap-Download-details-inner {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

.snap-Download-stage {
    width: 100%;
    display: grid;
    /* Text left, preview right (desktop) */
    grid-template-columns: 1fr minmax(260px, 360px);
    grid-template-areas:
        "header media"
        "related related";
    gap: 1.5rem;
    align-items: start;
}

.Download-frame {
    grid-area: media;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid rgba(0,0,0,0.08);
    /* Portrait/A4-ish preview */
    aspect-ratio: 1 / 1.414;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 100%;
    max-width: 360px;
}

.download-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Show the full page instead of cropping */
    object-fit: contain;
    opacity: 1;
}

.snap-Download-header {
    grid-area: header;
}

.snap-Download-related {
    grid-area: related;
}

@media (max-width: 900px) {
    .snap-Download-stage {
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "header"
            "related";
    }

    .Download-frame {
        justify-self: start;
        max-width: 100%;
    }
}

.download-action-button {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    background: var(--primary, #E01F26);
    border: 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 1rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.download-action-button:hover {
    transform: scale(1.05);
    background: var(--accent, #111);
    color: #fff;
    text-decoration: none;
}

.snap-Download-header {
    background: #fff;
    border-radius: 16px;
    padding: 0;
}

.snap-Download-header .breadcrumbs {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.6rem;
}

.snap-Download-header .breadcrumbs a {
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.2);
}

.snap-Download-header .breadcrumbs .sep {
    opacity: 0.65;
    padding: 0 0.35rem;
}

.snap-Download-header h1 {
    font-size: clamp(1.6rem, 2.5vw + 1rem, 2.4rem);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.snap-Download-description {
    color: #444;
    line-height: 1.75;
    font-size: 1.02rem;
}

.snap-Download-description p {
    margin: 0.55rem 0;
}

.snap-Download-category-nav {
    margin-top: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    text-decoration: none;
    color: #111;
    border: 0;
    background: #f3f4f6;
    font-size: 0.9rem;
}

.chip.selected {
    background: var(--primary, #0d6efd);
    color: #fff;
}

.snap-Download-related {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.related-block {
    grid-column: span 6;
    background: transparent;
    border: 0;
    border-radius: 16px;
    padding: 0;
}

.related-block h2 {
    margin: 0 0 0.85rem;
    font-size: 1.15rem;
}

.muted {
    margin: 0;
    color: #666;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.related-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0.8rem;
    align-items: center;
    text-decoration: none;
    color: #111;
    border: 0;
    background: #f7f7f9;
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
    transition: transform .15s ease, background .15s ease;
}

.related-card:hover {
    transform: translateY(-1px);
    background: #eef2ff;
}

.related-card.no-thumb {
    grid-template-columns: 1fr;
}

.related-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #fff;
    display: block;
    object-fit: cover;
}

.related-card .name {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.related-card .sub {
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .related-block { grid-column: span 12; }
}












