/* Completion patterns use the existing AMP section, card and spacing tokens. */
.amp-homepage-hero .amp-container.wp-block-group {
	display: grid;
	justify-items: center;
	gap: var(--wp--preset--spacing--50);
	text-align: center;
}
.amp-homepage-hero .amp-homepage-hero-copy { max-inline-size: var(--wp--style--global--content-size); }
.amp-homepage-hero-copy > :first-child { margin-block-start: 0; }
.amp-homepage-hero-copy > :last-child { margin-block-end: 0; }
.amp-homepage-hero .wp-block-search { inline-size: min(100%, var(--wp--custom--layout--narrow)); }
.amp-homepage-hero .amp-container > * { min-inline-size: 0; }
.amp-homepage-hero .amp-hero-media { inline-size: 100%; max-inline-size: var(--wp--custom--layout--narrow); margin-block: 0; }
.amp-homepage-hero .amp-hero-media figure { margin-block: 0; }
.amp-homepage-hero-actions { flex-wrap: wrap; }
.amp-homepage-hero-actions:not(:has(.wp-block-button)),
.amp-homepage-hero .amp-home-search:not(:has(form, .wp-block-shortcode)) { display: none; }
.editor-styles-wrapper .amp-homepage-hero-actions:not(:has(.wp-block-button)),
.editor-styles-wrapper .amp-homepage-hero .amp-home-search:not(:has(form, .wp-block-shortcode)) { display: block; }
.amp-component-heading { text-align: start; }
.amp-component-heading > :first-child { margin-block-start: 0; }
.amp-component-heading > :last-child { margin-block-end: 0; }

.amp-feature-card { align-items: flex-start; }
.amp-feature-icon { inline-size: 3rem; block-size: 3rem; margin: 0; }
.amp-feature-icon img { inline-size: 100%; block-size: 100%; object-fit: contain; }
.amp-feature-icon:not(:has(img[src]:not([src=""]))) { display: none; }
.editor-styles-wrapper .amp-feature-icon:not(:has(img[src]:not([src=""]))) { display: block; }

.amp-premium-split { align-items: center; }
.amp-premium-split > .wp-block-column { min-inline-size: 0; }
.amp-premium-split .amp-media-column { order: 2; }
.amp-premium-split .amp-copy-column { order: 1; }
.is-style-amp-columns-reversed { flex-direction: row-reverse; }
.editor-styles-wrapper .is-style-amp-columns-reversed { flex-direction: row-reverse; }

.amp-topic-chips { flex-wrap: wrap; gap: var(--wp--preset--spacing--30); }
.amp-topic-chips .wp-block-button__link { border-radius: var(--wp--custom--radius--pill); }
.amp-topic-chips .wp-block-button.is-style-outline .wp-block-button__link {
	border: 1px solid var(--wp--custom--border--color);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary);
}
.amp-topic-chips .wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--soft);
}
.amp-choice-card { block-size: 100%; }
.amp-choice-card .wp-block-buttons { margin-block-start: auto; }
.amp-trust-card { border-block-start: 3px solid var(--wp--preset--color--primary); }
.amp-patient-journey { padding-inline-start: var(--wp--preset--spacing--50); }
.amp-patient-journey > li { padding-inline-start: var(--wp--preset--spacing--20); margin-block-end: var(--wp--preset--spacing--40); }
.amp-patient-journey > li::marker { color: var(--wp--preset--color--primary); font-weight: 700; }
.amp-newsletter-shell .amp-component-heading { text-align: center; margin-inline: auto; }
.amp-newsletter-integration-note {
	max-inline-size: var(--wp--custom--layout--narrow);
	margin-inline: auto;
	padding: var(--wp--preset--spacing--40);
	border: 1px dashed var(--wp--custom--border--color);
	border-radius: var(--wp--custom--radius--small);
	text-align: center;
}
.amp-partner-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); align-items: center; }
.amp-partner-logo { display: grid; min-block-size: 5rem; place-items: center; padding: var(--wp--preset--spacing--30); }
.amp-partner-logo figure { display: grid; inline-size: 100%; min-block-size: 4rem; margin: 0; place-items: center; }
.amp-partner-logo img { display: block; max-inline-size: 10rem; max-block-size: 4rem; inline-size: auto; object-fit: contain; }
.amp-partner-logo:not(:has(img[src]:not([src=""]))) { display: none; }
.editor-styles-wrapper .amp-partner-logo:not(:has(img[src]:not([src=""]))) { display: grid; }

.amp-cta-simple .amp-component-heading,
.amp-cta-dark .amp-component-heading,
.amp-cta-support .amp-component-heading,
.amp-cta-donation .amp-component-heading { margin-inline: auto; text-align: center; }
.amp-cta-simple .wp-block-buttons,
.amp-cta-dark .wp-block-buttons,
.amp-cta-support .wp-block-buttons,
.amp-cta-donation .wp-block-buttons { justify-content: center; }
.amp-site-main > .amp-page-header + .wp-block-post-content { margin-block-start: 0; }

@media (max-width: 48rem) {
	.amp-premium-split { gap: var(--wp--preset--spacing--50); }
	.amp-premium-split.wp-block-columns > .wp-block-column { flex-basis: 100%; }
	.amp-premium-split .amp-media-column,
	.amp-premium-split .amp-copy-column { order: initial; }
	.is-style-amp-columns-reversed { flex-direction: column; }
}
