/* ===========================================================
   SCS global spacing overrides (approved 2026-11-06; phases 1-6)
   1. Body paragraphs: 20px -> 24px
   2. DRTS cards: 20px -> 24px
   3. Table cells: 10px 20px -> 8px 16px
   4. Header main menu items: 10px -> 8px
   5. Content Box icon offsets: 44px -> 40px / 50px -> 48px
   6. DRTS map directions input: 3px -> 8px
   7. Company profile card: radius 16px, padding 40px 32px (PC) / 24px 16px (mobile)
   8-19. Author/FAQ headings, content boxes, bookmarks, about H3,
         section menu, cs_table, contact form, DRTS search, top CTA,
         legacy sc_button, header search overlay
   20. Single event separators
   21. Content checklists (all pages)
   22. Remaining site-owned 12/15/20px values
   =========================================================== */
body .post-content p {
    margin-bottom: 24px !important;
}

body .drts-display-default-summary {
    margin-bottom: 24px !important;
}

body .table-1 td,
body .table-1 th {
    padding: 8px 16px !important;
}

body .fusion-tb-header .awb-menu__main-ul > li {
    margin-left: 8px !important;
    margin-right: 8px !important;
}

/* 5. Content Box icon offsets */
body.page-id-309 .sc_flow .content-box-heading {
    padding-left: 40px !important;
}
body.page-id-309 .sc_flow .heading-with-icon .icon {
    width: 40px !important;
}

body.page-id-1127 .heading-link .content-box-heading,
body.postid-1396 .heading-link .content-box-heading {
    padding-left: 48px !important;
}
body.page-id-1127 .heading-link .icon,
body.postid-1396 .heading-link .icon {
    width: 48px !important;
}

/* 6. DRTS detail: map directions input */
body .drts .drts-bs-form-control.drts-map-directions-input {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* 7. Company profile card (single post) */
body.single-post .company-profile-card {
    border-radius: 16px !important;
    padding: 40px 32px !important;
}
@media (max-width: 800px) {
    body.single-post .company-profile-card {
        border-radius: 16px !important;
        padding: 24px 16px !important;
    }
}

/* 8. Post author title */
body .about-author .fusion-title {
    margin-bottom: 8px !important;
}

/* 9. FAQ / category H2 */
body.post-type-archive-avada_faq .post-content h2,
body.tax-faq_category .post-content h2,
body.tax-sports_category .post-content h2 {
    margin-bottom: 24px !important;
}

/* 10. Content box padding 35px -> 32px */
body.page-id-1127 .link-area-box.content-wrapper-background,
body.postid-1396 .link-area-box.content-wrapper-background {
    padding: 32px !important;
}

/* 11. Bookmarks title */
body.page-id-3156 .fusion-title {
    padding-bottom: 8px !important;
}

/* 12. About page H3 */
body.page-id-10147 .post-content h3 {
    margin-bottom: 16px !important;
}

/* 13. 2425 section menu */
body.page-id-2425 .section_menu li {
    margin: 8px !important;
}

/* 14. 1104 cs_table */
body.page-id-1104 .cs_table td {
    padding: 8px !important;
}

/* 15. Contact form */
body.page-id-313 input.fusion-form-input {
    padding-left: 16px !important;
    padding-right: 16px !important;
}
body.page-id-313 textarea.fusion-form-input {
    padding: 16px !important;
}

/* 16. DRTS search keyword */
body .drts .drts-bs-form-control.drts-search-keyword-text {
    padding: 8px 24px 8px 40px !important;
}

/* 17. Top CTA */
body.page-id-9779 .fusion-builder-row-9 {
    padding-bottom: 56px !important;
}

/* 18. Legacy sc_button */
body .sc_button a {
    padding: 8px 56px 8px 32px !important;
    margin-bottom: 8px !important;
}

/* 19. Header search overlay */
body .awb-menu__search-overlay .fusion-search-form-content,
body .fusion-search-form-classic .fusion-search-form-content {
    padding: 8px 8px 8px 24px !important;
}
body .fusion-search-form-classic .fusion-search-field input[type="search"],
body .awb-menu__search-overlay .fusion-search-field input[type="search"] {
    padding: 8px 0 !important;
}

/* 20. Single event content: separators
   Only 10px inline values are converted; 40px separators stay as-is. */
body.single-tribe_events #main .fusion-separator[style*=";margin-top:10px"] {
    margin-top: 8px !important;
}
body.single-tribe_events #main .fusion-separator[style*=";margin-bottom:10px"] {
    margin-bottom: 8px !important;
}

/* 21. Content checklists: Avada base 10px -> 8px on all pages */
body #main .fusion-checklist {
    margin-top: 8px !important;
}

/* 22. Remaining site-owned 12/15/20px values -> 8px grid
   DRTS/Bootstrap framework gutters and button paddings are paired with
   negative margins and stay as-is (documented exceptions). */
/* Content box gutter: 15px -> 16px (container negative margin kept in pair) */
body #main .fusion-content-boxes {
    margin-left: -16px !important;
    margin-right: -16px !important;
}
body #main .fusion-content-boxes .content-box-column {
    padding-left: 16px !important;
    padding-right: 16px !important;
}
/* Content box icon gap: 20px -> 24px (icon-left only) */
body #main .fusion-content-boxes .heading-with-icon.icon-left .icon .fontawesome-icon {
    margin-right: 24px !important;
}
/* Content box heading bottom: 15px -> 16px (plain wrapper only) */
body #main .fusion-content-boxes .content-box-wrapper.content-wrapper .heading.heading-with-icon {
    margin-bottom: 16px !important;
}
/* Post cards: top padding 20px -> 24px (bottom is already 24px) */
body #main .fusion-post-cards .post-card {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}
/* Author avatar gap: 20px -> 24px */
body #main .about-author .avatar {
    margin-right: 24px !important;
}
/* Footer copyright: 12px -> 8px (footer element IDs differ per template) */
body .fusion-tb-footer .fusion-text p:only-child {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}
/* Volunteer section menu item: 12px -> 8px */
body #main #menu-volunteer-sub-menu .awb-menu__main-a {
    padding: 8px !important;
}
/* Archive post cards: horizontal padding 12px -> 16px */
body.archive #main .fusion-post-cards .post-card {
    padding-left: 16px !important;
    padding-right: 16px !important;
}
/* Archive/search pagination: side margins 12px -> 16px */
body #main .pagination.clearfix {
    margin-left: 16px !important;
    margin-right: 16px !important;
}
/* Archive/search list meta: top 20px -> 24px, author gap 15px -> 16px */
body.archive #main .fusion-meta-info,
body.search #main .fusion-meta-info {
    margin-top: 24px !important;
}
body.archive #main .fusion-meta-info .fusion-alignleft,
body.search #main .fusion-meta-info .fusion-alignleft {
    margin-right: 16px !important;
}
/* Search results excerpt spacing: 20px -> 24px */
body.search #main .fusion-post-content.post-content {
    margin-bottom: 24px !important;
}
body.search #main .fusion-post-content-container {
    margin-top: 24px !important;
}

/* ===========================================================
   23. Post card meta rows: align date/location icons with text
   The 24px bottom margin on .fusion-text p must not shift the
   vertically-centered icon column; align the row columns to the top.
   =========================================================== */
body .post-card .fusion-builder-row-inner:has(.fusion-text-no-margin) > .fusion-layout-column {
    align-self: flex-start !important;
}
