/*
 Theme Name:  Divi Child - Mercy Ships Asia
 Description: Child theme for Divi. Put custom CSS and PHP changes here, not in the Divi parent theme.
 Author:      Greenhat Services
 Template:    Divi
 Version:     1.0.0
 Text Domain: divi-child-mercyships-asia
*/

/* ===== Divi 5 migration fixes (quote 091126.1 item 5), tested on the copy 2026-11-11 =====
   Appended to the child theme style.css by migration/divi5-fixes.sh; keep this block last. */

/* Category pages: Blog "Read more" stays a pill. Divi 5 drops the Theme Builder rules that beat
   ".et_pb_posts a.more-link{display:block}". */
.et_pb_blog_0_tb_body .et_pb_post a.more-link { display: inline-block; }

/* Contact Us form and the footer Subscribe form: Divi 4 spaced fields by 3% of the form width
   (28px on the contact page, 8px on a phone); Divi 5 uses a fixed 15px gap. Divi 4 also stacked
   half-width fields on phones; Divi 5 keeps them side by side. Measured against live: within 4px. */
.et_pb_contact { container-type: inline-size; }
.et_pb_contact .et_pb_contact_form:not(.et_block_module) {
	--vertical-gap: calc(3cqw * 1.0309);
	--horizontal-gap: calc(3cqw * 1.0309);
}
.et_pb_contact .et_pb_contact_form:not(.et_block_module) > [class*=et_flex_column] {
	--horizontal-gap-parent: calc(3cqw * 1.0309);
}
/* Divi 4 pulled the Send/Subscribe row up by half a gap (margin-top -1.5%). */
.et_pb_contact .et_pb_contact_form:not(.et_block_module) > .et_contact_bottom_container {
	margin-top: calc(3cqw * 1.0309 / -2);
}
@media (max-width: 767px) {
	.et_pb_contact .et_pb_contact_form:not(.et_block_module) > .et_pb_contact_field {
		flex: 0 0 100%; width: 100%; max-width: 100%;
	}
}
/* Footer Subscribe fields: Divi 5 moved the 2px border and 35px radius from the input to its wrapper,
   leaving square grey inputs inside round borders. The input takes the wrapper's radius again. */
.et_pb_contact .et_pb_contact_field > input,
.et_pb_contact .et_pb_contact_field > textarea,
.et_pb_contact .et_pb_contact_field > select { border-radius: inherit; }

/* Who We Are "Support from World Leaders" slider: 17px text on phones too. Divi 4 set it with
   !important; Divi 5 drops the !important, so the theme's 14px phone rule won. */
@media (max-width: 767px) {
	.et_pb_slider.et_pb_module .et_pb_slides .et_pb_slide_content:has(.endorsement-title) { font-size: 17px; }
}

/* Social media icons (footer and pages): Divi 4 spaced them 8px apart and 8px below each row;
   Divi 5 zeroes both (margin-bottom with !important), so the footer was 8px shorter (16px on phones). */
body .et_pb_social_media_follow.et_block_module .et_pb_social_media_follow_network { margin-bottom: 8px !important; }
body ul.et_pb_social_media_follow li.et_pb_social_icon a.icon { margin-right: 8px; }

/* Testimonials (Mission and Impact): Divi 4 kept 1em below each quote paragraph, Divi 5 removes it
   from the last one (section 18px shorter, 36px with two paragraphs). */
body .et_pb_testimonial .et_pb_testimonial_description_inner p { padding-bottom: 1em; }

/* Source Sans Pro 700 (every Divi button, 263 module font settings, the custom .orange-button CSS):
   Divi 4 loaded it from Google Fonts, Divi 5 no longer does (Google renamed the family to Source Sans 3),
   so buttons fell back to Helvetica/Arial and long labels wrapped onto an extra line. Same files as live. */
@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/sourcesanspro/v24/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwmRdu.woff2) format('woff2'),url(https://fonts.gstatic.com/s/sourcesanspro/v24/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwmRdo.woff) format('woff'),url(https://fonts.gstatic.com/s/sourcesanspro/v24/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwmRdr.ttf) format('truetype')}

/* "404 Page Not Found" page (/error/, 9 language versions): the title text is 80% wide on desktop only.
   Divi 4 read the empty tablet/phone values as "no limit", the Divi 5 migrator as "same as desktop". */
@media (max-width:980px){body.page-id-286 .et_pb_text,body.page-id-108358 .et_pb_text,body.page-id-108362 .et_pb_text,body.page-id-108368 .et_pb_text,body.page-id-108372 .et_pb_text,body.page-id-108375 .et_pb_text,body.page-id-108379 .et_pb_text,body.page-id-108383 .et_pb_text,body.page-id-108389 .et_pb_text{max-width:none}}
