/* FDownload spacing refinement — consistent, compact SaaS gutters on all public pages.
   Only changes layout spacing. No tool controls, downloads, metadata, or routes modified. */

/* Desktop: reclaim excessive side whitespace without hugging viewport edges. */
body.fdownload-custom-canvas .fdownload-app .fd-shell,
body.fdownload-custom-canvas .fd-seo-content .fd-shell {
    width: min(1540px, calc(100% - 48px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.fdownload-custom-canvas .fdownload-app .fd-hero {
    padding-top: 43px !important;
    padding-bottom: 29px !important;
}
body.fdownload-custom-canvas .fdownload-app .fd-section {
    padding-top: 49px !important;
    padding-bottom: 49px !important;
}
body.fdownload-custom-canvas .fdownload-app .fd-section-head {
    margin-bottom: 26px !important;
}
body.fdownload-custom-canvas .fdownload-app .fd-footer {
    padding-top: 39px !important;
    padding-bottom: 20px !important;
}
body.fdownload-custom-canvas .fdownload-app .fd-footer-grid {
    gap: 26px !important;
}

/* Homepage toolkit: trim oversized upper/lower whitespace and card group gutters. */
body.fdownload-custom-canvas .fdownload-app .fd-tool-directory {
    padding: 54px 0 50px !important;
}
body.fdownload-custom-canvas .fdownload-app .fd-directory-intro {
    margin-bottom: 31px !important;
}
body.fdownload-custom-canvas .fdownload-app .fd-directory-group {
    padding: 24px 24px 26px !important;
    margin-bottom: 16px !important;
}
body.fdownload-custom-canvas .fdownload-app .fd-directory-description {
    margin: 11px 0 19px !important;
}
body.fdownload-custom-canvas .fdownload-app .fd-directory-footnote {
    margin-top: 18px !important;
}

/* Pages: give guides room for cards, keep legal copy comfortable to read. */
body.fdownload-custom-canvas .fdownload-app .fd-blog-page-wrapper {
    width: min(1450px, calc(100% - 48px)) !important;
    max-width: none !important;
    margin: 26px auto 44px !important;
}
body.fdownload-custom-canvas .fdownload-app .fd-legal-wrapper {
    width: min(1120px, calc(100% - 48px)) !important;
    max-width: none !important;
    margin: 26px auto 44px !important;
}
body.fdownload-custom-canvas .fdownload-app .fd-legal-box,
body.fdownload-custom-canvas .fdownload-app .fd-blog-header-box {
    padding: 28px !important;
}
body.fdownload-custom-canvas .fd-seo-content {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
}
body.fdownload-custom-canvas .fd-seo-intro {
    margin-bottom: 25px !important;
}
body.fdownload-custom-canvas .fd-page-faq {
    margin-top: 30px !important;
}

@media (max-width: 1050px) {
    body.fdownload-custom-canvas .fdownload-app .fd-shell,
    body.fdownload-custom-canvas .fd-seo-content .fd-shell {
        width: calc(100% - 36px) !important;
    }
    body.fdownload-custom-canvas .fdownload-app .fd-directory-group {
        padding: 20px !important;
    }
    body.fdownload-custom-canvas .fdownload-app .fd-blog-page-wrapper,
    body.fdownload-custom-canvas .fdownload-app .fd-legal-wrapper {
        width: calc(100% - 36px) !important;
    }
}

@media (max-width: 720px) {
    body.fdownload-custom-canvas .fdownload-app .fd-shell,
    body.fdownload-custom-canvas .fd-seo-content .fd-shell {
        width: calc(100% - 24px) !important;
    }
    body.fdownload-custom-canvas .fdownload-app .fd-hero {
        padding-top: 28px !important;
        padding-bottom: 22px !important;
    }
    body.fdownload-custom-canvas .fdownload-app .fd-section {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }
    body.fdownload-custom-canvas .fdownload-app .fd-section-head {
        margin-bottom: 20px !important;
    }
    body.fdownload-custom-canvas .fdownload-app .fd-tool-directory {
        padding-top: 38px !important;
        padding-bottom: 35px !important;
    }
    body.fdownload-custom-canvas .fdownload-app .fd-directory-intro {
        margin-bottom: 23px !important;
    }
    body.fdownload-custom-canvas .fdownload-app .fd-directory-group {
        padding: 16px 12px 18px !important;
        margin-bottom: 12px !important;
    }
    body.fdownload-custom-canvas .fdownload-app .fd-directory-grid {
        gap: 9px !important;
    }
    body.fdownload-custom-canvas .fdownload-app .fd-directory-card {
        padding: 12px !important;
    }
    body.fdownload-custom-canvas .fdownload-app .fd-directory-description {
        margin: 10px 0 15px !important;
    }
    body.fdownload-custom-canvas .fdownload-app .fd-directory-footnote {
        margin-top: 15px !important;
    }
    body.fdownload-custom-canvas .fdownload-app .fd-footer {
        padding-top: 32px !important;
    }
    body.fdownload-custom-canvas .fdownload-app .fd-blog-page-wrapper,
    body.fdownload-custom-canvas .fdownload-app .fd-legal-wrapper {
        width: calc(100% - 24px) !important;
        margin: 16px auto 30px !important;
    }
    body.fdownload-custom-canvas .fdownload-app .fd-legal-box,
    body.fdownload-custom-canvas .fdownload-app .fd-blog-header-box {
        padding: 19px !important;
    }
    body.fdownload-custom-canvas .fd-seo-content {
        padding-top: 34px !important;
        padding-bottom: 34px !important;
    }
    body.fdownload-custom-canvas .fd-page-faq {
        margin-top: 23px !important;
    }
}

/* Five-column SaaS footer: brand, video tools, MP3 tools, legal and company. */
body.fdownload-custom-canvas .fdownload-app .fd-footer-grid {
    grid-template-columns: minmax(225px, 1.6fr) repeat(4, minmax(0, 1fr)) !important;
    align-items: start;
    gap: clamp(15px, 2.1vw, 32px) !important;
}
body.fdownload-custom-canvas .fdownload-app .fd-footer-mp3-tools a {
    display: block;
    color: #667085 !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    margin: 9px 0 !important;
}
body.fdownload-custom-canvas .fdownload-app .fd-footer-mp3-tools a:hover,
body.fdownload-custom-canvas .fdownload-app .fd-footer-mp3-tools a:focus-visible {
    color: #1677ff !important;
}
@media (max-width: 1100px) {
    body.fdownload-custom-canvas .fdownload-app .fd-footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 24px 30px !important;
    }
    body.fdownload-custom-canvas .fdownload-app .fd-footer-brand {
        grid-column: span 2;
    }
}
@media (max-width: 720px) {
    body.fdownload-custom-canvas .fdownload-app .fd-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 21px 18px !important;
    }
    body.fdownload-custom-canvas .fdownload-app .fd-footer-brand {
        grid-column: 1 / -1 !important;
    }
    body.fdownload-custom-canvas .fdownload-app .fd-footer-mp3-tools a {
        font-size: 12px !important;
        margin: 8px 0 !important;
        overflow-wrap: anywhere;
    }
}
@media (max-width: 370px) {
    body.fdownload-custom-canvas .fdownload-app .fd-footer-grid {
        gap: 19px 12px !important;
    }
}

