@media (max-width: 1199px) {
	:root {
		--melinda-sidebar-width: 0px;
		--melinda-container: 900px;
		--melinda-page-padding-x: 24px;
		--melinda-page-padding-y: 48px;
		--melinda-section-gap: 64px;
		--melinda-grid-gap: 24px;
	}

	.site-sidebar {
		inset: 0 0 auto;
		position: sticky;
		width: 100%;
	}

	.melinda-sidebar {
		align-items: center;
		flex-direction: row;
		gap: 20px;
		min-height: auto;
		padding: 18px 24px;
		width: 100%;
	}

	.melinda-nav-group {
		display: none;
	}

	.site-main,
	.editor-styles-wrapper .site-main,
	.melinda-footer {
		margin-left: 0;
		width: 100%;
	}
}

@media (max-width: 767px) {
	:root {
		--melinda-container: 100%;
		--melinda-page-padding-x: 20px;
		--melinda-page-padding-y: 36px;
		--melinda-section-gap: 48px;
		--melinda-grid-gap: 20px;
		--melinda-card-padding: 24px;
		--melinda-heading-1: 40px;
		--melinda-heading-2: 28px;
		--melinda-heading-3: 24px;
		--melinda-heading-4: 22px;
		--melinda-heading-5: 18px;
		--melinda-script-label: 34px;
		--melinda-script-medium: 38px;
		--melinda-script-large: 48px;
		--melinda-script-hero: 58px;
	}

	body,
	.editor-styles-wrapper {
		font-size: 16px;
	}

	h1,
	.editor-styles-wrapper h1 {
		letter-spacing: -.8px;
	}

	h2,
	.editor-styles-wrapper h2 {
		letter-spacing: -.56px;
	}

	.melinda-script--hero,
	.script-heading {
		line-height: 48px;
	}

	.melinda-grid,
	.melinda-grid--two {
		grid-template-columns: 1fr;
	}

	.wp-block-button,
	.wp-block-button__link,
	.wp-element-button {
		box-sizing: border-box;
		width: 100%;
	}

	.melinda-label,
	.labeled-card .script-label {
		font-size: var(--melinda-script-label);
	}
}

/* Sidenav responsive behavior */
@media (max-width: 1199px) {
	.site-sidebar {
		background: var(--melinda-sidebar-gradient);
		box-shadow: var(--melinda-shadow-card);
		z-index: 40;
	}

	.melinda-sidebar {
		display: none;
	}

	.melinda-mobile-nav {
		align-items: center;
		background: var(--melinda-sidebar-gradient);
		box-sizing: border-box;
		display: flex;
		gap: 16px;
		justify-content: space-between;
		min-height: 76px;
		padding: 14px 24px;
		width: 100%;
	}

	.melinda-mobile-logo,
	.melinda-mobile-logo .custom-logo-link,
	.melinda-mobile-logo img {
		display: block;
		max-height: 52px;
		max-width: 168px;
	}

	.melinda-mobile-title {
		margin-right: auto;
	}

	.melinda-mobile-logo:not(:empty) + .melinda-mobile-title {
		display: none;
	}
}

@media (max-width: 767px) {
	.melinda-mobile-nav {
		min-height: 68px;
		padding: 12px 20px;
	}

	.melinda-mobile-logo,
	.melinda-mobile-logo .custom-logo-link,
	.melinda-mobile-logo img {
		max-height: 44px;
		max-width: 142px;
	}

	.melinda-mobile-title {
		font-size: 17px;
		max-width: 190px;
	}

	.melinda-mobile-navigation .wp-block-navigation__responsive-container.is-menu-open {
		padding: 20px;
	}
}

/* Homepage responsive assembly */
@media (max-width: 1199px) {
	.home-hero {
		gap: 40px;
		grid-template-columns: 1fr;
	}

	.home-hero__media {
		grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
	}
}

@media (max-width: 767px) {
	.home-hero__media,
	.home-section-grid {
		grid-template-columns: 1fr;
	}

	.home-hero__quote {
		min-height: auto;
		padding: 32px 24px;
	}

	.mission-band,
	.final-cta {
		align-items: flex-start;
		flex-direction: column;
		padding: 28px;
	}

	.mission-band {
		gap: 20px;
	}

	.mission-band__image {
		margin-top: 0;
	}
}

/* Hero responsive refinement */
@media (max-width: 1199px) {
	.home-hero.home-section {
		gap: 40px;
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.home-hero__heading,
	.home-hero__body {
		max-width: 680px;
	}

	.home-hero__actions {
		max-width: 498px;
	}

	.home-hero__media {
		height: clamp(360px, 48vw, 470px);
		margin-top: 0;
		max-width: 620px;
	}

	.home-hero__image {
		height: 100%;
		width: min(62vw, 380px);
	}

	.home-hero__quote {
		right: 0;
		top: 28%;
	}
}

@media (max-width: 767px) {
	.home-hero.home-section {
		gap: 28px;
		margin-top: 0;
	}

	.home-hero__heading {
		font-size: var(--melinda-heading-1);
		letter-spacing: -.8px;
		margin-bottom: 22px;
	}

	.home-hero__script {
		font-size: var(--melinda-script-hero);
		letter-spacing: -1.16px;
		line-height: 48px;
		white-space: normal;
	}

	.home-hero__actions {
		max-width: none;
	}

	.home-hero__media {
		display: flex;
		flex-direction: column;
		gap: 20px;
		height: auto;
		max-width: none;
	}

	.home-hero__image,
	.home-hero__quote {
		height: auto;
		position: relative;
		right: auto;
		top: auto;
		width: 100%;
	}

	.home-hero__image {
		aspect-ratio: 4 / 3;
		left: auto;
	}

	.home-hero__quote {
		min-height: 180px;
		padding: 48px 24px;
	}
}

/* Hero screenshot alignment responsive */
@media (max-width: 1199px) {
	.home-hero.home-section {
		gap: 36px;
		grid-template-columns: 1fr;
		max-width: var(--melinda-container);
	}

	.home-hero__heading,
	.home-hero__body,
	.home-hero__actions {
		max-width: 620px;
	}

	.home-hero__media {
		height: clamp(420px, 52vw, 500px);
		max-width: 620px;
	}

	.home-hero__image {
		height: 100%;
		width: min(68%, 400px);
	}

	.home-hero__quote {
		height: min(326px, 68%);
		top: 30%;
		width: min(42%, 234px);
	}
}

@media (max-width: 767px) {
	.home-hero__heading {
		font-size: 42px;
		line-height: 1.08;
		margin-bottom: 22px;
	}

	.home-hero__script {
		font-size: 60px;
		line-height: 50px;
	}

	.home-hero__body {
		font-size: 17px;
	}

	.home-hero__button .wp-block-button__link {
		font-size: 20px;
		min-height: 58px;
	}

	.home-hero__media {
		height: auto;
	}

	.home-hero__image {
		aspect-ratio: 1 / 1.05;
		width: 100%;
	}

	.home-hero__quote {
		height: auto;
		min-height: 210px;
		padding: 56px 26px 48px;
		width: 100%;
	}
}

/* Home feature cards responsive */
@media (max-width: 1199px) {
	.home-intro-cards.home-section {
		max-width: var(--melinda-container);
	}

	.home-intro-cards__grid {
		gap: 56px;
		grid-template-columns: 1fr;
	}

	.home-feature-card {
		height: auto;
		min-height: 190px;
	}
}

@media (max-width: 767px) {
	.home-intro-cards__grid {
		gap: 52px;
	}

	.home-feature-card {
		padding: 52px 22px 24px;
	}

	.home-feature-card__label,
	.home-feature-card.labeled-card .script-label,
	.approach-card .home-feature-card__label,
	.approach-card.labeled-card .script-label {
		height: 58px;
		left: 22px;
		max-width: calc(100% - 44px);
		min-width: 0;
		padding-inline: 18px;
		top: -31px;
	}

	.home-feature-list--three.wp-block-columns,
	.home-feature-list--four.wp-block-columns {
		grid-template-columns: 1fr;
	}

	.home-feature-item.wp-block-column {
		padding: 18px 0;
	}

	.home-feature-item + .home-feature-item::before {
		height: 1px;
		left: 10%;
		top: 0;
		width: 80%;
	}

	.home-feature-item__title {
		font-size: 18px;
	}
}

/* Home lower sections responsive */
@media (max-width: 1199px) {
	.home-mission.home-section,
	.home-proof.home-section,
	.home-final-cta.home-section {
		max-width: var(--melinda-container);
	}

	.home-proof-grid {
		gap: 56px;
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.home-mission-band {
		align-items: flex-start;
		flex-direction: column;
		gap: 18px;
		padding: 24px;
	}

	.home-mission-band .mission-band__image {
		bottom: auto;
		left: auto;
		position: relative;
	}

	.home-mission-band .mission-band__copy {
		padding-left: 0;
	}

	.lower-card {
		min-height: 0;
		padding: 52px 22px 24px;
	}

	.lower-card__label,
	.lower-card.labeled-card .script-label,
	.why-card .lower-card__label,
	.why-card.labeled-card .script-label {
		left: 22px;
		max-width: calc(100% - 44px);
		min-width: 0;
		padding-inline: 18px;
	}

	.seen-in-card .media-logo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-final-cta {
		margin-top: 0;
	}

	.home-final-cta .final-cta {
		align-items: stretch;
		flex-direction: column;
		gap: 22px;
		padding: 28px;
	}

	.home-final-cta .final-cta__actions {
		min-width: 0;
		width: 100%;
	}
}

/* Full-site responsive refinement */
@media (min-width: 1200px) {
	.site-main,
	.editor-styles-wrapper .site-main {
		padding-inline: clamp(28px, 3.9vw, 56px);
	}

	.melinda-home {
		gap: clamp(64px, 5.6vw, 80px);
	}

	.home-section {
		max-width: min(var(--melinda-container), 100%);
	}

	.home-hero.home-section,
	.home-intro-cards.home-section {
		max-width: min(1160px, 100%);
	}

	.home-hero.home-section {
		grid-template-columns: minmax(430px, 1fr) minmax(420px, 1fr);
	}

	.home-hero__media {
		width: 100%;
	}
}

@media (min-width: 1200px) and (max-width: 1519px) {
	:root {
		--melinda-page-padding-x: 32px;
		--melinda-section-gap: 68px;
	}

	.site-main,
	.editor-styles-wrapper .site-main {
		padding-top: 64px;
	}

	.home-hero.home-section {
		gap: 28px;
		grid-template-columns: minmax(390px, .95fr) minmax(390px, 1fr);
		min-height: 430px;
	}

	.home-hero__heading {
		font-size: clamp(46px, 3.7vw, 56px);
		margin-bottom: 26px;
	}

	.home-hero__script {
		font-size: clamp(68px, 5.3vw, 82px);
		line-height: .78;
	}

	.home-hero__body {
		font-size: clamp(17px, 1.28vw, 20px);
	}

	.home-hero__button .wp-block-button__link {
		font-size: clamp(21px, 1.6vw, 24px);
		min-height: 60px;
	}

	.home-hero__media {
		height: clamp(408px, 35vw, 486px);
	}

	.home-hero__image {
		height: 100%;
		width: min(67%, 374px);
	}

	.home-hero__quote {
		height: min(326px, 67%);
		padding-inline: 22px;
		top: 32.5%;
		width: min(43%, 234px);
	}

	.home-hero__quote p {
		font-size: clamp(14px, 1.06vw, 16px);
	}

	.home-intro-cards__grid {
		gap: 32px;
	}

	.home-feature-card {
		padding-inline: 28px;
	}

	.home-feature-item__icon img {
		height: 72px;
		width: 72px;
	}

	.home-feature-item__title {
		font-size: 18px;
	}

	.home-proof-grid {
		gap: 40px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1199px) {
	html.has-modal-open,
	body.has-modal-open {
		overflow: hidden;
	}

	.site-sidebar {
		top: 0;
	}

	.site-main,
	.editor-styles-wrapper .site-main {
		padding-top: 52px;
	}

	.melinda-mobile-nav {
		position: relative;
		z-index: 50;
	}

	.melinda-mobile-navigation .wp-block-navigation__responsive-container.is-menu-open {
		min-height: 100vh;
		overflow-y: auto;
	}

	.melinda-mobile-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
	.melinda-mobile-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		align-items: stretch;
		width: 100%;
	}

	.melinda-mobile-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		width: 100%;
	}

	.home-hero.home-section {
		align-items: start;
	}

	.home-hero__copy {
		max-width: 720px;
	}

	.home-hero__media {
		width: min(100%, 620px);
	}

	.home-intro-cards__grid,
	.home-proof-grid {
		margin-inline: auto;
		max-width: 760px;
	}

	.lower-card,
	.home-feature-card {
		overflow: visible;
	}

	.melinda-footer {
		padding-inline: var(--melinda-page-padding-x);
	}
}

@media (min-width: 768px) and (max-width: 1199px) {
	:root {
		--melinda-container: min(900px, calc(100vw - 48px));
		--melinda-section-gap: 60px;
	}

	.home-hero__heading {
		font-size: 52px;
		line-height: 1.08;
	}

	.home-hero__script {
		font-size: 76px;
		line-height: 58px;
	}

	.home-hero__body {
		font-size: 19px;
	}

	.home-hero__actions {
		max-width: 520px;
	}

	.home-feature-card {
		padding-inline: clamp(28px, 5vw, 44px);
	}

	.home-feature-list--three.wp-block-columns,
	.home-feature-list--four.wp-block-columns {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.home-feature-list--four.wp-block-columns .home-feature-item:last-child {
		grid-column: 2;
	}

	.home-feature-list--four.wp-block-columns .home-feature-item:nth-child(4)::before {
		display: none;
	}

	.seen-in-card .media-logo-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.home-final-cta .final-cta {
		gap: 32px;
		padding: 28px 36px;
	}

	.home-final-cta .final-cta__actions {
		min-width: 300px;
	}
}

@media (max-width: 767px) {
	body,
	.editor-styles-wrapper {
		line-height: 1.35;
	}

	.site-main,
	.editor-styles-wrapper .site-main {
		padding-bottom: 44px;
		padding-inline: var(--melinda-page-padding-x);
		padding-top: 34px;
	}

	.melinda-home {
		gap: 52px;
	}

	.home-section {
		width: 100%;
	}

	.melinda-mobile-navigation .wp-block-navigation__responsive-container-open,
	.melinda-mobile-navigation .wp-block-navigation__responsive-container-close {
		height: 48px;
		width: 48px;
	}

	.melinda-mobile-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		font-size: 17px;
		min-height: 48px;
		padding-block: 15px;
	}

	.home-hero.home-section {
		gap: 30px;
	}

	.home-hero__heading,
	.home-hero__body,
	.home-hero__actions {
		max-width: none;
	}

	.home-hero__heading {
		font-size: clamp(38px, 11.5vw, 44px);
		letter-spacing: 0;
		line-height: 1.04;
	}

	.home-hero__script {
		font-size: clamp(54px, 17vw, 64px);
		letter-spacing: 0;
		line-height: .88;
	}

	.home-hero__body {
		font-size: 17px;
		line-height: 1.28;
	}

	.home-hero__body p {
		margin-bottom: 14px;
	}

	.home-hero__button .wp-block-button__link,
	.home-final-cta .final-cta__button .wp-block-button__link {
		font-size: 19px;
		min-height: 56px;
		padding-inline: 18px;
	}

	.home-hero__image {
		aspect-ratio: 1 / 1.08;
	}

	.home-hero__image img {
		object-position: center top;
	}

	.home-hero__quote {
		font-size: 15px;
		line-height: 1.25;
		min-height: 178px;
		padding: 48px 24px 42px;
	}

	.home-hero__quote p {
		font-size: 15px;
	}

	.home-hero__quote::before,
	.home-hero__quote::after {
		height: 22px;
		width: 22px;
	}

	.home-feature-card,
	.lower-card {
		border-radius: 10px;
	}

	.home-feature-card__label,
	.home-feature-card.labeled-card .script-label,
	.lower-card__label,
	.lower-card.labeled-card .script-label {
		font-size: clamp(31px, 10vw, 38px);
		height: auto;
		line-height: 1;
		min-height: 54px;
		text-align: center;
	}

	.home-feature-list.wp-block-columns {
		height: auto;
	}

	.home-feature-item__icon img {
		height: 72px;
		width: 72px;
	}

	.home-feature-item__title {
		font-size: 18px;
		line-height: 1.18;
	}

	.home-mission-band {
		padding: 22px;
	}

	.home-mission-band .mission-band__image {
		width: 112px;
	}

	.home-mission-band .mission-band__image img {
		height: auto;
		width: 112px;
	}

	.mission-band__title,
	.home-final-cta .final-cta__heading {
		font-size: 30px;
		letter-spacing: 0;
	}

	.mission-band__text,
	.why-list__item p {
		font-size: 16px;
		line-height: 1.32;
	}

	.seen-in-card .media-logo-grid {
		gap: 18px 20px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		min-height: 0;
	}

	.seen-in-card .media-logo-grid img {
		max-height: 58px;
		max-width: 120px;
	}

	.why-list {
		gap: 15px;
	}

	.why-list__item {
		gap: 12px;
	}

	.home-final-cta .final-cta {
		padding: 26px 22px;
	}

	.home-final-cta .final-cta__heading {
		max-width: none;
	}

	.wp-block-search__inside-wrapper {
		align-items: stretch;
		flex-direction: column;
	}

	.wp-block-search__button {
		width: 100%;
	}

	.melinda-footer {
		padding-block: 26px;
	}
}

@media (max-width: 420px) {
	:root {
		--melinda-page-padding-x: 16px;
	}

	.melinda-mobile-nav {
		padding-inline: 16px;
	}

	.home-hero__button .wp-block-button__link,
	.home-final-cta .final-cta__button .wp-block-button__link {
		font-size: 18px;
	}

	.home-feature-card,
	.lower-card {
		padding-inline: 18px;
	}

	.home-feature-card__label,
	.home-feature-card.labeled-card .script-label,
	.lower-card__label,
	.lower-card.labeled-card .script-label {
		left: 18px;
		max-width: calc(100% - 36px);
	}

	.seen-in-card .media-logo-grid {
		grid-template-columns: 1fr;
	}
}

/* Editable content responsive refinement */
@media (max-width: 1199px) {
	.home-faq.home-section {
		max-width: var(--melinda-container);
	}

	.faq-card {
		margin-inline: auto;
		max-width: 760px;
	}

	.home-final-cta .final-cta {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.final-cta__contact {
		max-width: 260px;
	}

	.melinda-footer__inner {
		align-items: flex-start;
	}
}

@media (min-width: 768px) and (max-width: 1199px) {
	.home-final-cta .final-cta__heading {
		max-width: 330px;
	}

	.home-final-cta .final-cta__actions {
		min-width: 260px;
	}
}

@media (max-width: 767px) {
	.faq-card {
		padding-bottom: 24px;
	}

	.faq-list {
		gap: 10px;
	}

	.faq-item summary {
		font-size: 16px;
		min-height: 48px;
		padding: 15px 16px;
	}

	.faq-item p {
		font-size: 15px;
		line-height: 1.35;
		padding: 0 16px 16px 30px;
	}

	.final-cta__contact {
		max-width: none;
		width: 100%;
	}

	.home-final-cta .final-cta__actions {
		min-width: 0;
	}

	.melinda-footer__inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 16px;
	}

	.melinda-footer__nav .wp-block-navigation__container {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.melinda-footer__nav .wp-block-navigation-item__content {
		min-height: 32px;
		padding-block: 4px;
	}
}

/* Correct sidenav display rules */
@media (min-width: 768px) and (max-width: 1199px) {
	:root {
		--melinda-sidebar-width: 300px;
	}

	.site-sidebar {
		background: transparent;
		box-shadow: none;
		inset: 0 auto 0 0;
		position: fixed;
		width: var(--melinda-sidebar-width);
		z-index: 40;
	}

	.melinda-mobile-nav {
		display: none;
	}

	.melinda-sidebar {
		align-items: flex-start;
		display: flex;
		flex-direction: column;
		gap: 34px;
		min-height: 100vh;
		padding: 37px 28px;
		width: var(--melinda-sidebar-width);
	}

	.melinda-nav-group {
		display: block;
	}

	.site-main,
	.editor-styles-wrapper .site-main {
		margin-left: var(--melinda-sidebar-width);
		width: calc(100% - var(--melinda-sidebar-width));
	}

	.melinda-footer {
		margin-left: var(--melinda-sidebar-width);
	}
}

@media (max-width: 767px) {
	:root {
		--melinda-sidebar-width: 0px;
	}

	.site-sidebar {
		background: transparent;
		box-shadow: none;
		inset: 0 0 auto;
		position: sticky;
		width: 100%;
		z-index: 50;
	}

	.melinda-sidebar {
		display: none;
	}

	.melinda-sidebar__toggle {
		display: none;
	}

	.melinda-mobile-nav {
		display: flex;
	}

	.site-main,
	.editor-styles-wrapper .site-main,
	.melinda-footer {
		margin-left: 0;
		width: 100%;
	}
}

/* Single sidenav control on all viewport sizes */
.melinda-mobile-nav {
	display: none !important;
}

@media (max-width: 767px) {
	:root {
		--melinda-sidebar-width: min(372px, calc(100vw - 24px));
	}

	.site-sidebar {
		background: transparent;
		box-shadow: none;
		inset: 0 auto 0 0;
		position: fixed;
		width: var(--melinda-sidebar-width);
		z-index: 100;
	}

	.melinda-sidebar {
		align-items: flex-start;
		display: flex;
		flex-direction: column;
		gap: 34px;
		min-height: 100vh;
		overflow-y: auto;
		padding: 58px 32px 40px;
		width: var(--melinda-sidebar-width);
	}

	.melinda-nav-group {
		display: block;
		width: 100%;
	}

	.melinda-sidebar__brand {
		min-height: 120px;
	}

	.melinda-sidebar__toggle {
		display: flex;
		height: 44px;
		right: -22px;
		top: 23px;
		width: 44px;
	}

	.site-main,
	.editor-styles-wrapper .site-main,
	.melinda-footer {
		margin-left: 0;
		width: 100%;
	}

	body.melinda-sidenav-collapsed {
		--melinda-sidebar-width: 0px;
	}

	body.melinda-sidenav-collapsed .site-sidebar {
		width: 0;
	}

	body.melinda-sidenav-collapsed .melinda-sidebar {
		overflow: visible;
		padding: 0;
		width: 0;
	}

	body.melinda-sidenav-collapsed .melinda-sidebar__brand {
		min-height: 0;
		width: 0;
	}

	body.melinda-sidenav-collapsed .melinda-logo,
	body.melinda-sidenav-collapsed .melinda-logo-fallback,
	body.melinda-sidenav-collapsed .melinda-nav-group {
		display: none;
	}

	body.melinda-sidenav-collapsed .melinda-sidebar__toggle {
		display: flex;
		left: 12px;
		right: auto;
		top: 22px;
		transform: rotate(45deg);
	}
}

/* Feature card and sidenav control responsive corrections */
@media (min-width: 768px) {
	.home-feature-card {
		padding-left: 24px;
		padding-right: 24px;
	}

	.home-feature-item.wp-block-column {
		padding-inline: 14px;
	}

	.home-feature-item__title,
	.approach-card .home-feature-item__title {
		font-size: 18px;
		white-space: nowrap;
	}
}

@media (max-width: 767px) {
	.melinda-sidebar__brand {
		min-height: 122px;
	}

	.melinda-sidebar__toggle {
		height: 40px;
		right: -20px;
		top: 38px;
		width: 40px;
	}

	.home-feature-item__title,
	.approach-card .home-feature-item__title {
		white-space: normal;
	}
}

/* Body and paragraph responsive font-size correction */
@media (min-width: 768px) {
	.home-hero__body,
	.home-hero__body p,
	.home-feature-item__title,
	.approach-card .home-feature-item__title,
	.mission-band__text,
	.why-list__item p,
	.final-cta__contact,
	.final-cta__contact p {
		font-size: 16px;
	}
}

@media (max-width: 767px) {
	.home-hero__body,
	.home-hero__body p,
	.home-feature-item__title,
	.approach-card .home-feature-item__title,
	.mission-band__text,
	.why-list__item p,
	.final-cta__contact,
	.final-cta__contact p {
		font-size: 16px;
	}
}

/* Collapse button mobile circle positioning */
@media (max-width: 767px) {
	.melinda-sidebar__toggle,
	body.melinda-sidenav-collapsed .melinda-sidebar__toggle {
		aspect-ratio: 1 / 1;
		border-radius: 50% !important;
		height: 42px !important;
		min-height: 42px !important;
		min-width: 42px !important;
		padding: 0 !important;
		right: -21px !important;
		top: 38px !important;
		width: 42px !important;
	}

	body.melinda-sidenav-collapsed .melinda-sidebar__toggle {
		left: 12px !important;
		right: auto !important;
		top: 22px !important;
	}
}

/* Keep collapse button inside sidenav on mobile */
@media (max-width: 767px) {
	.melinda-sidebar {
		padding-top: 56px;
	}

	.melinda-sidebar__brand {
		padding-top: 18px;
	}

	.melinda-sidebar__toggle,
	body.melinda-sidenav-collapsed .melinda-sidebar__toggle {
		right: 16px !important;
		top: 18px !important;
	}

	body.melinda-sidenav-collapsed .melinda-sidebar__toggle {
		left: 12px !important;
		right: auto !important;
		top: 22px !important;
	}
}
/* My Story connection row responsive alignment */
@media (min-width: 768px) and (max-width: 1199px) {
	.my-story-connection {
		--connection-gap: 32px;
		--connection-grid-width: 680px;
		max-width: 760px;
		padding: 26px 18px 28px;
	}

	.my-story-connection .my-story-connections.wp-block-columns {
		column-gap: var(--connection-gap) !important;
		max-width: var(--connection-grid-width);
	}

	.my-story-connection .my-story-connection-visual,
	.my-story-connection .my-story-connection-item > figure.wp-block-image {
		height: 74px;
	}

	.my-story-connection .my-story-connection-visual img,
	.my-story-connection .my-story-connection-item > figure.wp-block-image img {
		height: 74px;
		max-height: 74px;
		max-width: 100px;
	}

	.my-story-connection .my-story-connection-item:first-child:not(:has(.my-story-connection-visual)) {
		padding-top: 80px !important;
	}

	.my-story-connection > .my-story-connection__heading:not(.my-story-connection-visual) {
		height: 74px;
		left: max(18px, calc(50% - 340px));
		top: 26px;
		width: 146px;
	}

	.my-story-connection .my-story-connection__heading,
	.my-story-connection .my-story-connection__heading span {
		font-size: 29px;
	}

	.my-story-connection .my-story-connection-item h3.wp-block-heading {
		font-size: 16px;
		min-height: 42px;
	}

	.my-story-connection .my-story-connection-item:not(:last-child) h3.wp-block-heading::after {
		left: calc(100% + 16px);
		width: 16px;
	}
}

@media (max-width: 767px) {
	.my-story-connection {
		max-width: 100%;
		padding: 26px 18px 28px;
	}

	.my-story-connection .my-story-connections.wp-block-columns {
		display: grid;
		grid-template-columns: 1fr;
		max-width: 100%;
		row-gap: 24px;
	}

	.my-story-connection .my-story-connection-visual,
	.my-story-connection .my-story-connection-item > figure.wp-block-image {
		height: auto;
		margin-bottom: 8px;
	}

	.my-story-connection .my-story-connection-visual img,
	.my-story-connection .my-story-connection-item > figure.wp-block-image img {
		height: 104px;
		max-height: 104px;
		max-width: 126px;
	}

	.my-story-connection .my-story-connection-item:first-child:not(:has(.my-story-connection-visual)) {
		padding-top: 0 !important;
	}

	.my-story-connection > .my-story-connection__heading:not(.my-story-connection-visual) {
		height: auto;
		left: auto;
		margin: 0 auto 8px;
		position: static;
		top: auto;
		width: auto;
	}

	.my-story-connection .my-story-connection__heading,
	.my-story-connection .my-story-connection__heading span {
		font-size: 34px;
	}

	.my-story-connection .my-story-connection-item h3.wp-block-heading {
		font-size: 18px;
		min-height: 0;
		width: auto;
	}

	.my-story-connection .my-story-connection-item:not(:last-child) h3.wp-block-heading::after {
		display: none;
	}

	.my-story-connection__quote {
		max-width: 100%;
	}
}

/* My Story purpose row responsive alignment */
@media (min-width: 768px) and (max-width: 1199px) {
	.my-story-connection .my-story-purpose.wp-block-columns {
		column-gap: 32px !important;
		max-width: 680px;
	}

	.my-story-connection .my-story-purpose p {
		font-size: 12px;
		max-width: 124px;
		min-height: 40px;
	}

	.my-story-connection .my-story-purpose > .wp-block-column:not(:last-child) p::after {
		left: calc(100% + 16px);
		width: 16px;
	}
}

@media (max-width: 767px) {
	.my-story-connection .my-story-purpose.wp-block-columns {
		display: grid;
		grid-template-columns: 1fr;
		max-width: 100%;
		row-gap: 18px;
	}

	.my-story-connection .my-story-purpose p {
		font-size: 14px;
		max-width: 230px;
		min-height: 0;
	}

	.my-story-connection .my-story-purpose > .wp-block-column:not(:last-child) p::after {
		display: none;
	}
}

/* My Story giving back responsive video layout */
@media (min-width: 768px) and (max-width: 1199px) {
	.my-story-volunteer-card--feature {
		gap: 34px;
		grid-template-columns: 244px minmax(0, 1fr);
		padding: 32px 38px;
	}

	.my-story-volunteer-card .wp-block-button__link {
		min-width: 280px;
	}

	.my-story-volunteer-grid {
		gap: 28px;
	}

	.my-story-volunteer-grid .my-story-volunteer-card {
		padding: 28px 28px 30px;
	}

	.my-story-volunteer-grid .my-story-video,
	.my-story-volunteer-grid .my-story-video__media,
	.my-story-volunteer-grid .my-story-video > figure:first-child,
	.my-story-volunteer-grid .my-story-volunteer-card__image,
	.my-story-volunteer-grid .my-story-volunteer-card__image img {
		height: 220px;
	}
}

@media (max-width: 767px) {
	.my-story-giving {
		padding-top: 58px;
	}

	.my-story-giving__intro {
		font-size: 14px !important;
		max-width: 100%;
	}

	.my-story-volunteer-card--feature {
		display: grid;
		gap: 28px;
		grid-template-columns: 1fr;
		padding: 24px 20px 26px;
	}

	.my-story-volunteer-card--feature .my-story-video,
	.my-story-volunteer-card--feature .my-story-video__media,
	.my-story-volunteer-card--feature .my-story-video > figure:first-child {
		height: min(112vw, 434px);
		max-width: 244px;
		width: 100%;
	}

	.my-story-volunteer-card h3 {
		font-size: 19px;
	}

	.my-story-volunteer-card p:not(.my-story-role) {
		font-size: 15px;
		max-width: 100%;
	}

	.my-story-volunteer-card .wp-block-button__link {
		min-width: 0;
		width: 100%;
	}

	.my-story-volunteer-grid {
		display: grid;
		gap: 28px;
		grid-template-columns: 1fr;
		margin-top: 28px;
	}

	.my-story-volunteer-grid .my-story-volunteer-card {
		padding: 24px 20px 26px;
	}

	.my-story-volunteer-grid .my-story-video,
	.my-story-volunteer-grid .my-story-video__media,
	.my-story-volunteer-grid .my-story-video > figure:first-child,
	.my-story-volunteer-grid .my-story-volunteer-card__image,
	.my-story-volunteer-grid .my-story-volunteer-card__image img {
		height: auto;
		min-height: 210px;
	}

	.my-story-volunteer-grid .my-story-video video,
	.my-story-volunteer-grid .my-story-video > figure:first-child img,
	.my-story-volunteer-grid .my-story-volunteer-card__image img {
		aspect-ratio: 16 / 9;
		height: auto;
	}

}

/* Services page responsive */
@media (min-width: 768px) and (max-width: 1199px) {
	.melinda-services {
		padding-bottom: 190px;
	}

	.melinda-services.site-main {
		padding-top: 48px;
	}

	body.admin-bar .melinda-services.site-main {
		padding-top: 16px;
	}

	.services-hero {
		padding-top: 0;
	}

	.services-hero__content {
		align-items: start;
		gap: 24px;
		grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
		min-height: 330px;
	}

	.services-hero__heading {
		font-size: 38px;
	}

	.services-hero__image {
		align-self: start;
		max-width: 360px;
	}

	.services-archetypes__card,
	.services-online,
	.services-expect {
		padding-left: 26px;
		padding-right: 26px;
	}

	.services-archetypes__image {
		max-width: 650px;
	}

	.services-online__grid.wp-block-columns {
		gap: 14px;
	}

	.services-expect__grid.wp-block-columns {
		gap: 14px;
	}

	.services-sticky-cta {
		left: var(--melinda-page-padding-x);
		right: var(--melinda-page-padding-x);
	}
}

@media (max-width: 767px) {
	.melinda-services {
		gap: 28px;
		padding-bottom: 210px;
	}

	.melinda-services.site-main {
		padding-top: 36px;
	}

	body.admin-bar .melinda-services.site-main {
		padding-top: 0;
	}

	.services-hero {
		padding-top: 0;
	}

	.services-section {
		max-width: 100%;
	}

	.services-script-label {
		font-size: 30px;
		min-height: 48px;
		padding-left: 18px;
		padding-right: 18px;
		white-space: normal;
	}

	.services-hero__content {
		display: flex;
		flex-direction: column;
		gap: 22px;
		min-height: 0;
		text-align: left;
	}

	.services-hero__heading {
		font-size: 36px;
		max-width: 100%;
	}

	.services-hero__intro {
		max-width: 100%;
	}

	.services-hero__image {
		align-self: center;
		justify-self: center;
		max-width: 330px;
	}

	.services-archetypes__card,
	.services-online,
	.services-expect {
		padding: 22px 16px 24px;
	}

	.services-archetypes__title,
	.services-online__heading,
	.services-expect__heading {
		font-size: 22px;
	}

	.services-archetypes__image {
		max-width: 100%;
	}

	.services-online__grid.wp-block-columns,
	.services-expect__grid.wp-block-columns {
		display: grid;
		gap: 16px;
		grid-template-columns: 1fr;
	}

	.services-step-card.wp-block-column,
	.services-expect-card.wp-block-column {
		width: 100%;
	}

	.services-step-card__image {
		max-width: 132px;
	}

	.services-step-card h3 {
		font-size: 16px;
	}

	.services-step-card p:not(.services-step-card__eyebrow),
	.services-expect-card p {
		font-size: 13px;
	}

	.services-expect-card.wp-block-column {
		min-height: 0;
		padding: 16px 14px;
	}

	.services-expect-card__icon {
		width: 52px;
	}

	.services-sticky-cta {
		bottom: 12px;
		left: 12px;
		right: 12px;
	}

	.services-sticky-cta__inner {
		display: flex;
		flex-direction: column;
		gap: 10px;
		min-height: 0;
		padding: 13px 14px 14px;
		text-align: center;
	}

	.services-sticky-cta__heading {
		font-size: 17px;
	}

	.services-sticky-cta__actions,
	.services-sticky-cta__button,
	.services-sticky-cta__button .wp-block-button__link {
		width: 100%;
	}

	.services-sticky-cta__button .wp-block-button__link {
		min-width: 0;
	}
}

/* Services sticky CTA follows homepage CTA sizing */
@media (min-width: 768px) and (max-width: 1199px) {
	.services-sticky-cta .final-cta__heading {
		max-width: 330px;
	}

	.services-sticky-cta .final-cta__actions {
		min-width: 260px;
	}
}

@media (max-width: 767px) {
	.services-archetypes__card {
		padding: 24px 16px 26px;
	}

	.services-archetypes__title {
		font-size: 22px;
		gap: 8px;
	}

	.services-archetypes__subtitle,
	.services-archetypes__note {
		font-size: 13px !important;
	}

	.services-sticky-cta .final-cta {
		align-items: flex-start;
		flex-direction: column;
		gap: 24px;
		padding: 28px;
		text-align: left;
	}

	.services-sticky-cta .final-cta__heading {
		font-size: 28px;
		letter-spacing: -.56px;
		max-width: none;
	}

	.services-sticky-cta .final-cta__actions {
		min-width: 0;
		width: 100%;
	}
}

/* Services archetype Figma content lock */
@media (min-width: 768px) and (max-width: 1199px) {
	.services-archetypes .services-archetypes__card {
		padding: 30px 28px 34px;
	}

	.services-archetypes .services-archetypes__title {
		font-size: 28px;
	}

	.services-archetypes .services-archetypes__image {
		max-width: 660px;
	}
}

@media (max-width: 767px) {
	.services-archetypes .services-archetypes__card {
		padding: 24px 16px 28px;
	}

	.services-archetypes .services-archetypes__title {
		align-items: center;
		flex-wrap: wrap;
		font-size: 24px;
		gap: 8px;
	}

	.services-archetypes .services-archetypes__subtitle,
	.services-archetypes .services-archetypes__note {
		font-size: 13px !important;
		max-width: 100%;
	}

	.services-archetypes .services-archetypes__subtitle {
		margin-bottom: 18px;
	}

	.services-archetypes .services-archetypes__note {
		margin-top: 22px;
	}
}

/* Services online series unified panel responsive */
@media (min-width: 768px) and (max-width: 1199px) {
	.services-online.services-section {
		padding: 46px 28px 64px;
	}

	.services-online + .services-expect {
		margin-top: -34px;
		padding: 10px 28px 64px;
	}

	.services-online__heading {
		font-size: 27px;
		gap: 18px;
	}

	.services-online__badge {
		margin-bottom: 64px;
	}

	.services-online__grid.wp-block-columns {
		gap: 18px;
	}

	.services-step-card.wp-block-column {
		min-height: 282px;
		padding: 40px 18px 24px;
	}

	.services-step-card__image {
		right: 16px;
		width: 128px;
	}

	.services-step-card:nth-child(2) .services-step-card__image {
		right: 22px;
		width: 150px;
	}

	.services-step-card:nth-child(3) .services-step-card__image {
		right: 20px;
		width: 124px;
	}

	.services-step-card h3 {
		font-size: 18px;
	}

	.services-step-card p:not(.services-step-card__eyebrow) {
		font-size: 14px;
	}

	.services-online .services-expect__heading,
	.services-expect__heading {
		font-size: 28px;
		margin-top: 50px;
	}

	.services-online .services-expect__grid.wp-block-columns,
	.services-expect__grid.wp-block-columns {
		gap: 18px;
	}

	.services-expect-card.wp-block-column {
		min-height: 190px;
		padding: 28px 14px 18px;
	}

	.services-expect-card p {
		font-size: 14px;
	}
}

@media (max-width: 767px) {
	.services-online.services-section {
		padding: 34px 16px 42px;
	}

	.services-online + .services-expect {
		margin-top: -28px;
		padding: 6px 16px 42px;
	}

	.services-online__heading {
		align-items: center;
		flex-direction: column;
		font-size: 25px;
		gap: 4px;
		line-height: 1.12;
	}

	.services-online__heading span {
		font-size: 1.8em;
	}

	.services-online__badge {
		font-size: 15px !important;
		margin-bottom: 56px;
	}

	.services-online__grid.wp-block-columns,
	.services-online .services-expect__grid.wp-block-columns,
	.services-expect__grid.wp-block-columns {
		display: grid;
		gap: 54px;
		grid-template-columns: 1fr;
	}

	.services-step-card.wp-block-column {
		min-height: 0;
		padding: 46px 20px 24px;
	}

	.services-step-card__image,
	.services-step-card:nth-child(2) .services-step-card__image,
	.services-step-card:nth-child(3) .services-step-card__image {
		right: 18px;
		top: -46px;
		width: 126px;
	}

	.services-step-card h3 {
		font-size: 20px;
	}

	.services-step-card p:not(.services-step-card__eyebrow) {
		font-size: 15px;
		max-width: none;
	}

	.services-online .services-expect__heading,
	.services-expect__heading {
		font-size: 27px;
		margin: 46px auto 24px;
	}

	.services-online .services-expect__grid.wp-block-columns,
	.services-expect__grid.wp-block-columns {
		gap: 18px;
	}

	.services-expect-card.wp-block-column {
		min-height: 170px;
		padding: 26px 16px 20px;
	}

	.services-expect-card p {
		font-size: 15px;
		max-width: 220px;
	}
}

/* Services online/expectations true single-panel responsive correction */
@media (min-width: 768px) and (max-width: 1199px) {
	.services-online.services-section {
		padding: 46px 28px 64px;
	}

	.services-online + .services-expect {
		background: transparent;
		border-radius: 0;
		box-shadow: none;
		margin-top: 0;
		padding: 0;
	}

	.services-step-card h3 {
		gap: 22px;
		margin-bottom: 16px;
	}
}

@media (max-width: 767px) {
	.services-online.services-section {
		padding: 34px 16px 42px;
	}

	.services-online + .services-expect {
		background: transparent;
		border-radius: 0;
		box-shadow: none;
		margin-top: 0;
		padding: 0;
	}

	.services-step-card h3 {
		gap: 20px;
		margin-bottom: 16px;
	}
}
/* Services online final pill and step icon alignment */
@media (min-width: 768px) and (max-width: 1199px) {
	.services-online .services-step-card__image,
	.services-online .services-step-card:nth-child(2) .services-step-card__image,
	.services-online .services-step-card:nth-child(3) .services-step-card__image {
		width: 128px;
	}

	.services-online .services-step-card:nth-child(2) .services-step-card__image {
		right: 18px;
	}

	.services-online .services-step-card:nth-child(3) .services-step-card__image {
		right: 18px;
	}
}

@media (max-width: 767px) {
	.services-online .services-online__badge {
		margin-left: auto;
		margin-right: auto;
	}
}

/* Final mobile sidenav, homepage card, and My Story layout corrections */
@media (max-width: 767px) {
	.site-main,
	.editor-styles-wrapper .site-main {
		padding-top: 84px !important;
	}

	body.melinda-sidenav-collapsed .melinda-sidebar__toggle {
		left: 12px !important;
		right: auto !important;
		top: 22px !important;
		transform: none !important;
	}

	body.melinda-sidenav-collapsed .melinda-sidebar__toggle span {
		transform: none !important;
	}

	body.melinda-sidenav-collapsed .melinda-sidebar__toggle span::before {
		transform: translateY(-6px) !important;
	}

	body.melinda-sidenav-collapsed .melinda-sidebar__toggle span::after {
		display: block !important;
		transform: translateY(6px) !important;
	}

	.home-feature-card__label,
	.home-feature-card.labeled-card .script-label,
	.approach-card .home-feature-card__label,
	.approach-card.labeled-card .script-label,
	.lower-card__label,
	.lower-card.labeled-card .script-label {
		align-items: center !important;
		display: inline-flex !important;
		justify-content: center !important;
		line-height: 1 !important;
		padding-bottom: 4px;
		text-align: center;
	}

	.approach-card .home-feature-list--four.wp-block-columns {
		display: grid !important;
		grid-template-columns: 1fr !important;
	}

	.approach-card .home-feature-item.wp-block-column {
		padding: 18px 0 !important;
	}

	.approach-card .home-feature-item + .home-feature-item::before {
		display: block !important;
		height: 1px !important;
		left: 10% !important;
		top: 0 !important;
		width: 80% !important;
	}

	.melinda-my-story {
		overflow: visible !important;
		padding: 28px 18px 64px !important;
	}

	.my-story-hero {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 28px !important;
		min-height: 0 !important;
	}

	.my-story-hero__copy {
		align-self: auto !important;
		max-width: 100% !important;
		padding-bottom: 0 !important;
		position: relative;
		z-index: 2;
	}

	.my-story-hero__heading {
		font-size: clamp(36px, 12vw, 46px) !important;
		line-height: 1.05 !important;
	}

	.my-story-hero__script {
		font-size: 1.15em !important;
	}

	.my-story-hero__intro {
		font-size: 16px !important;
		line-height: 1.25 !important;
		margin-top: 18px !important;
	}

	.my-story-hero__portrait {
		height: auto !important;
		min-height: 0 !important;
		position: relative !important;
	}

	.my-story-hero__portrait figure {
		inset: auto !important;
		margin: 0 auto !important;
		overflow: visible !important;
		position: relative !important;
	}

	.my-story-hero__portrait img {
		height: auto !important;
		max-height: 360px;
		object-fit: contain !important;
		width: 100% !important;
	}

	.my-story-hero__portrait-front {
		display: none !important;
	}

	.my-story-giving .my-story-label {
		box-sizing: border-box;
		font-size: clamp(30px, 10vw, 38px) !important;
		left: 50% !important;
		line-height: 1 !important;
		max-width: calc(100vw - 48px) !important;
		padding: 9px 18px 8px !important;
		text-align: center !important;
		white-space: normal !important;
		width: max-content;
	}
}

/* Mobile-only homepage pill and divider refinements */
@media (max-width: 767px) {
	.home-feature-card__label,
	.home-feature-card.labeled-card .script-label,
	.approach-card .home-feature-card__label,
	.approach-card.labeled-card .script-label,
	.lower-card__label,
	.lower-card.labeled-card .script-label,
	.why-card .lower-card__label,
	.why-card.labeled-card .script-label {
		align-items: center !important;
		display: inline-flex !important;
		justify-content: center !important;
		line-height: 1 !important;
		min-height: 54px;
		padding-bottom: 6px !important;
		padding-top: 6px !important;
		text-align: center !important;
	}

	.home-feature-list--three.wp-block-columns .home-feature-item + .home-feature-item::before,
	.home-feature-list--four.wp-block-columns .home-feature-item + .home-feature-item::before {
		display: block !important;
		height: 1px !important;
		left: 10% !important;
		top: 0 !important;
		transform: none !important;
		width: 80% !important;
	}
}

/* Final mobile spacing and label cascade overrides */
@media (max-width: 767px) {
	.site-main,
	.editor-styles-wrapper .site-main,
	.melinda-home.site-main,
	.melinda-my-story.site-main,
	.melinda-services.site-main,
	body.admin-bar .melinda-home.site-main,
	body.admin-bar .melinda-my-story.site-main,
	body.admin-bar .melinda-services.site-main {
		padding-top: 72px !important;
	}

	.home-feature-card__label,
	.home-feature-card.labeled-card .script-label,
	.approach-card .home-feature-card__label,
	.approach-card.labeled-card .script-label,
	.lower-card__label,
	.lower-card.labeled-card .script-label,
	.why-card .lower-card__label,
	.why-card.labeled-card .script-label {
		align-items: center !important;
		box-sizing: border-box !important;
		display: inline-flex !important;
		height: auto !important;
		justify-content: center !important;
		line-height: 1 !important;
		min-height: 58px !important;
		padding-bottom: 8px !important;
		padding-top: 8px !important;
		text-align: center !important;
	}

	.my-story-giving {
		padding-top: 120px !important;
	}

	.my-story-giving .my-story-label {
		box-sizing: border-box !important;
		left: 50% !important;
		line-height: 1 !important;
		max-width: calc(100vw - 48px) !important;
		padding: 10px 18px 12px !important;
		text-align: center !important;
		top: 18px !important;
		transform: translateX(-50%) !important;
		white-space: normal !important;
		width: min(100%, calc(100vw - 48px)) !important;
	}
}
