.q-ingredients-page {
	background: var(--q-paper);
}

.q-ingredients-page .q-skip-link,
.q-ingredients-page .q-wordmark,
.q-ingredients-page .q-nav a,
.q-ingredients-page .q-header-actions a,
.q-ingredients-page .q-footer-links a {
	min-height: 44px;
}

.q-ingredients-page .q-nav a,
.q-ingredients-page .q-footer-links a {
	min-width: 44px;
}

.q-ingredients-page .q-wordmark,
.q-ingredients-page .q-footer-links a {
	padding-block: 13px;
}

.q-ingredients-page .q-nav a,
.q-ingredients-page .q-header-actions a {
	padding-block: 12px;
}

body.q-ingredients-page :is(a, button, summary):focus-visible {
	outline: 3px solid var(--q-orange);
	outline-offset: 3px;
}

.qi-main {
	overflow: hidden;
	background: var(--q-paper);
	color: var(--q-ink);
}

.qi-eyebrow {
	margin: 0 0 14px;
	color: var(--q-blue-deep);
	font-size: 11px;
	font-weight: 820;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.qi-hero {
	display: grid;
	min-height: calc(100svh - 68px);
	grid-template-columns: minmax(0, 0.82fr) minmax(500px, 1.18fr);
}

.qi-hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(72px, 9vw, 144px) var(--q-page-gutter);
	background: var(--q-blue-deep);
	color: var(--q-cool-white);
}

.qi-hero-copy .qi-eyebrow {
	color: #9fd4e8;
}

body.q-ingredients-page .qi-hero h1 {
	max-width: 9.5ch;
	margin: 0;
	color: var(--q-cool-white);
	font-size: clamp(54px, 6.8vw, 96px);
	font-weight: 790;
	letter-spacing: -0.02em;
	line-height: 1.05;
	text-wrap: balance;
}

.qi-hero-copy > p:last-child {
	max-width: 42ch;
	margin: 36px 0 0;
	color: #c6d9df;
	font-size: clamp(16px, 1.4vw, 20px);
	line-height: 1.55;
}

.qi-formula {
	display: flex;
	min-width: 0;
	flex-direction: column;
	justify-content: space-between;
	margin: 0;
	padding: clamp(48px, 6vw, 94px) var(--q-page-gutter);
	background: #dbe9f0;
}

.qi-formula figcaption {
	display: grid;
	gap: 7px;
	color: var(--q-blue-deep);
}

.qi-formula figcaption span {
	font-size: 11px;
	font-weight: 820;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.qi-formula figcaption strong {
	font-family: var(--q-display);
	font-size: clamp(24px, 2.4vw, 38px);
	letter-spacing: -0.04em;
}

.qi-formula-stack {
	display: flex;
	min-height: 380px;
	align-items: stretch;
	margin-top: 70px;
	border: 1px solid rgba(0, 47, 76, 0.16);
}

.qi-formula-stack > span {
	display: flex;
	min-width: 0;
	flex: var(--share);
	flex-direction: column;
	justify-content: flex-end;
	padding: clamp(12px, 2vw, 28px);
	border-right: 1px solid rgba(0, 47, 76, 0.24);
	color: var(--q-blue-deep);
}

.qi-formula-stack > span:last-child {
	border-right: 0;
}

.qi-formula-stack b {
	font-family: var(--q-display);
	font-size: clamp(20px, 2.3vw, 38px);
	letter-spacing: -0.04em;
}

.qi-formula-stack small {
	margin-top: 5px;
	font-size: 10px;
	font-weight: 780;
	line-height: 1.15;
	text-transform: uppercase;
}

.qi-formula-stack .is-oat {
	background: var(--q-oat);
}

.qi-formula-stack .is-carbs {
	background: var(--q-orange);
}

.qi-formula-stack .is-protein {
	background: var(--q-mint);
}

.qi-formula-stack .is-oils {
	background: #e7d55e;
}

.qi-formula-stack .is-finish {
	background: var(--q-sky);
}

.qi-product-nav {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-block: 1px solid var(--q-line);
	background: var(--q-cool-white);
}

.qi-product-nav a {
	display: grid;
	grid-template-columns: 36px 1fr;
	gap: 3px 16px;
	padding: 28px var(--q-page-gutter);
	border-right: 1px solid var(--q-line);
	color: var(--q-ink);
	transition: background 180ms ease, color 180ms ease;
}

.qi-product-nav a,
.qi-product-nav a:is(:hover, :focus-visible) {
	color: #10272a;
}

.qi-product-nav a:last-child {
	border-right: 0;
}

.qi-product-nav a:nth-child(1):is(:hover, :focus-visible) {
	background: var(--q-sky);
}

.qi-product-nav a:nth-child(2):is(:hover, :focus-visible) {
	background: var(--q-oat);
}

.qi-product-nav a:nth-child(3):is(:hover, :focus-visible) {
	background: #dd6b63;
	color: #10272a;
}

.qi-product-nav span {
	grid-row: span 2;
	padding-top: 4px;
	color: var(--q-muted);
	font-size: 10px;
	font-weight: 800;
}

.qi-product-nav strong {
	font-family: var(--q-display);
	font-size: 24px;
	letter-spacing: -0.035em;
}

.qi-product-nav small {
	font-size: 12px;
}

.qi-recipe,
.qi-flow {
	scroll-margin-top: 70px;
}

.qi-recipe {
	padding: clamp(84px, 10vw, 154px) var(--q-page-gutter);
}

.qi-recipe--steady {
	background: var(--q-paper);
}

.qi-recipe--ready {
	background: #f2ca81;
}

.qi-recipe-intro {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.55fr);
	gap: clamp(48px, 9vw, 150px);
	align-items: end;
	margin-bottom: clamp(58px, 8vw, 108px);
}

.qi-recipe-intro h2,
.qi-flow h2,
.qi-close h2 {
	max-width: 14ch;
	margin: 0;
	font-size: clamp(44px, 5.5vw, 78px);
	font-weight: 770;
	letter-spacing: -0.04em;
	line-height: 0.98;
	text-wrap: balance;
}

.qi-recipe-intro > p,
.qi-flow > header > p:last-child {
	max-width: 42ch;
	margin: 0;
	color: #4e625d;
	font-size: 17px;
	line-height: 1.6;
}

.qi-recipe--ready .qi-recipe-intro > p {
	color: #5a4b32;
}

.qi-ledger {
	border-top: 1px solid color-mix(in srgb, var(--q-ink) 38%, transparent);
}

.qi-ingredient {
	--ingredient: var(--q-sky);
	position: relative;
	display: grid;
	min-height: 148px;
	grid-template-columns: 54px minmax(0, 1fr) minmax(90px, 120px);
	gap: 28px;
	align-items: center;
	padding: 24px 0 30px;
	border-bottom: 1px solid color-mix(in srgb, var(--q-ink) 30%, transparent);
}

.qi-index {
	align-self: start;
	padding-top: 7px;
	color: #596d67;
	font-size: 10px;
	font-weight: 820;
}

.qi-ingredient h3 {
	margin: 0;
	font-family: var(--q-display);
	font-size: clamp(24px, 2.5vw, 38px);
	font-weight: 750;
	letter-spacing: -0.04em;
	line-height: 1;
}

.qi-ingredient p {
	max-width: 65ch;
	margin: 10px 0 0;
	color: #4d625d;
	font-size: 14px;
	line-height: 1.5;
}

.qi-recipe--ready .qi-ingredient p,
.qi-recipe--ready .qi-index {
	color: #5a4b32;
}

.qi-ingredient > strong {
	display: grid;
	gap: 2px;
	justify-items: end;
	color: var(--q-blue-deep);
	font-family: var(--q-display);
	font-size: 25px;
	letter-spacing: -0.04em;
}

.qi-ingredient > strong small {
	font-family: var(--q-font);
	font-size: 9px;
	font-weight: 760;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.qi-measure {
	position: absolute;
	right: 0;
	bottom: -1px;
	width: max(3%, calc(var(--amount) * 1%));
	height: 8px;
	background: var(--ingredient);
}

.qi-ingredient--oat {
	--ingredient: #c89848;
}

.qi-ingredient--orange,
.qi-ingredient--sugar {
	--ingredient: var(--q-orange);
}

.qi-ingredient--sky,
.qi-ingredient--blue {
	--ingredient: var(--q-sky);
}

.qi-ingredient--mint,
.qi-ingredient--pea {
	--ingredient: var(--q-mint);
}

.qi-ingredient--lavender,
.qi-ingredient--berry {
	--ingredient: var(--q-lavender);
}

.qi-ingredient--rice {
	--ingredient: #e7d7b9;
}

.qi-ingredient--oil {
	--ingredient: #d9c23e;
}

.qi-ingredient--strawberry {
	--ingredient: #df6680;
}

.qi-label-panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 28px;
	align-items: stretch;
	margin-top: 40px;
}

.qi-label-panel details {
	background: var(--q-cool-white);
}

.qi-label-panel summary {
	display: flex;
	min-height: 70px;
	box-sizing: border-box;
	align-items: center;
	justify-content: space-between;
	padding: 22px 24px;
	cursor: pointer;
	font-weight: 780;
	list-style: none;
}

.qi-label-panel summary::-webkit-details-marker {
	display: none;
}

.qi-label-panel summary b {
	font-size: 24px;
	font-weight: 400;
	transition: transform 220ms var(--q-ease-out);
}

.qi-label-panel details[open] summary b {
	transform: rotate(45deg);
}

.qi-label-panel details > div {
	padding: 0 24px 28px;
}

.qi-label-panel details p {
	margin: 0;
	color: var(--q-muted);
	font-size: 13px;
	line-height: 1.7;
}

.qi-label-panel details p + p {
	margin-top: 16px;
}

.qi-label-panel .qi-allergen {
	color: var(--q-ink);
}

.qi-label-panel > a,
.qi-flow-label > a {
	display: inline-flex;
	min-height: 70px;
	box-sizing: border-box;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	padding: 22px 24px;
	background: var(--q-blue-deep);
	color: var(--q-cool-white);
	font-size: 13px;
	font-weight: 760;
	transition: transform 220ms var(--q-ease-out);
}

.qi-label-panel:has(details[open]) {
	align-items: start;
}

body.q-ingredients-page .qi-label-panel > a {
	color: var(--q-cool-white);
}

body.q-ingredients-page .qi-flow-label > a {
	color: #7f2823;
}

.qi-label-panel > a:hover,
.qi-label-panel > a:focus-visible,
.qi-flow-label > a:hover,
.qi-flow-label > a:focus-visible {
	transform: translateY(-3px);
}

.qi-flow {
	padding: clamp(84px, 10vw, 154px) var(--q-page-gutter);
	background: #b94239;
	color: #fff6e8;
}

.qi-flow .qi-eyebrow {
	color: #fff6e8;
}

.qi-flow > header {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.55fr);
	gap: clamp(48px, 9vw, 150px);
	align-items: end;
}

body.q-ingredients-page .qi-flow h2,
body.q-ingredients-page .qi-flow h3 {
	color: #fff6e8;
}

.qi-flow h2 {
	max-width: 15ch;
}

.qi-flow > header > p:last-child {
	color: #fff6e8;
}

.qi-flow-ledger {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: clamp(58px, 8vw, 108px);
	border-block: 1px solid rgba(255, 246, 232, 0.48);
}

.qi-flow-ledger article {
	display: flex;
	min-height: 310px;
	flex-direction: column;
	padding: 26px;
	border-right: 1px solid rgba(255, 246, 232, 0.48);
}

.qi-flow-ledger article:last-child {
	border-right: 0;
}

.qi-flow-ledger article > span {
	color: #fff6e8;
	font-size: 10px;
	font-weight: 800;
}

.qi-flow-ledger h3 {
	max-width: 10ch;
	margin: 54px 0 0;
	color: #fff6e8;
	font-size: clamp(21px, 2vw, 31px);
	letter-spacing: -0.04em;
	line-height: 1;
}

.qi-flow-ledger strong {
	margin-top: auto;
	font-family: var(--q-display);
	font-size: clamp(32px, 3vw, 49px);
	letter-spacing: -0.04em;
}

.qi-flow-ledger p {
	min-height: 4.5em;
	margin: 10px 0 0;
	color: #fff6e8;
	font-size: 13px;
	line-height: 1.5;
}

.qi-flow-label {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 40px;
	align-items: stretch;
	padding-top: 34px;
}

.qi-flow-label p {
	max-width: 85ch;
	margin: 0;
	color: #fff6e8;
	font-size: 13px;
	line-height: 1.65;
}

.qi-flow-label p + p {
	margin-top: 12px;
}

.qi-flow-label strong {
	color: #fff6e8;
}

.qi-flow-label > a {
	background: #fff6e8;
	color: #7f2823;
}

.qi-close {
	display: grid;
	grid-template-columns: minmax(0, 0.75fr) minmax(520px, 1.25fr);
	gap: clamp(50px, 8vw, 120px);
	align-items: end;
	padding: clamp(84px, 9vw, 132px) var(--q-page-gutter);
	background: var(--q-cool-white);
}

.qi-close h2 {
	max-width: 10ch;
	font-size: clamp(42px, 4.5vw, 66px);
}

.qi-close nav {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border: 1px solid var(--q-line);
}

.qi-close nav a {
	display: flex;
	min-height: 170px;
	flex-direction: column;
	justify-content: space-between;
	padding: 24px;
	border-right: 1px solid var(--q-line);
	color: var(--q-ink);
}

.qi-close nav a:last-child {
	border-right: 0;
}

.qi-close nav a:nth-child(1) {
	background: var(--q-sky);
}

.qi-close nav a:nth-child(2) {
	background: var(--q-oat);
}

.qi-close nav a:nth-child(3) {
	background: #dd6b63;
	color: #10272a;
}

.qi-close nav strong {
	font-family: var(--q-display);
	font-size: 28px;
	letter-spacing: -0.04em;
}

.qi-close nav span {
	font-size: 11px;
	font-weight: 740;
}

@media (max-width: 1080px) {
	.q-ingredients-page .q-header {
		grid-template-columns: auto 1fr auto;
	}

	.q-ingredients-page .q-nav {
		gap: 20px;
	}

	.q-ingredients-page .q-header-actions > a:first-child {
		display: none;
	}

	.qi-hero {
		grid-template-columns: minmax(0, 0.9fr) minmax(450px, 1.1fr);
	}

	.qi-formula-stack {
		min-height: 320px;
	}

	.qi-flow-ledger {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.qi-flow-ledger article:nth-child(2) {
		border-right: 0;
	}

	.qi-flow-ledger article:nth-child(-n + 2) {
		border-bottom: 1px solid rgba(255, 246, 232, 0.48);
	}

	.qi-close {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 820px) {
	.qi-hero {
		min-height: 0;
		grid-template-columns: 1fr;
	}

	.qi-hero h1 {
		font-size: clamp(54px, 12vw, 82px);
	}

	.qi-formula-stack {
		min-height: 280px;
		margin-top: 46px;
	}

	.qi-product-nav a {
		padding: 22px 18px;
	}

	.qi-recipe-intro,
	.qi-flow > header {
		grid-template-columns: 1fr;
	}

	.qi-label-panel,
	.qi-flow-label {
		grid-template-columns: 1fr;
	}

	.qi-label-panel > a,
	.qi-flow-label > a {
		justify-self: start;
	}

}

@media (max-width: 620px) {
	.qi-hero-copy,
	.qi-formula,
	.qi-recipe,
	.qi-flow,
	.qi-close {
		padding-inline: 20px;
	}

	.qi-formula-stack {
		min-height: 0;
		flex-direction: column;
	}

	.qi-formula-stack > span {
		min-height: 60px;
		flex: none;
		flex-direction: row;
		align-items: end;
		justify-content: space-between;
		border-right: 0;
		border-bottom: 1px solid rgba(0, 47, 76, 0.24);
	}

	.qi-product-nav {
		grid-template-columns: 1fr;
	}

	.qi-product-nav a {
		border-right: 0;
		border-bottom: 1px solid var(--q-line);
	}

	.qi-product-nav a,
.qi-product-nav a:is(:hover, :focus-visible) {
	color: #10272a;
}

.qi-product-nav a:last-child {
		border-bottom: 0;
	}

	.qi-recipe-intro h2,
	.qi-flow h2 {
		font-size: clamp(39px, 12vw, 58px);
	}

	.qi-ingredient {
		min-height: 0;
		grid-template-columns: 28px minmax(0, 1fr);
		gap: 14px;
		padding: 22px 0 28px;
	}

	.qi-ingredient > strong {
		grid-column: 2;
		justify-items: start;
		font-size: 20px;
	}

	.qi-ingredient p {
		font-size: 13px;
	}

	.qi-flow-ledger {
		grid-template-columns: 1fr;
	}

	.qi-flow-ledger article {
		min-height: 240px;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 246, 232, 0.48);
	}

	.qi-flow-ledger article:nth-child(3) {
		border-bottom: 1px solid rgba(255, 246, 232, 0.48);
	}

	.qi-close nav {
		grid-template-columns: 1fr;
	}

	.qi-close nav a {
		min-height: 120px;
		border-right: 0;
		border-bottom: 1px solid var(--q-line);
	}

	.qi-close nav a:last-child {
		border-bottom: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.qi-label-panel summary b,
	.qi-label-panel > a,
	.qi-flow-label > a {
		transition: none;
	}

	.qi-label-panel > a:hover,
	.qi-label-panel > a:focus-visible,
	.qi-flow-label > a:hover,
	.qi-flow-label > a:focus-visible {
		transform: none;
	}
}
