.daily-schedule {
	.intro {
		padding-bottom: 75px;

		& > div {
			display: grid;
			grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
			gap: 32px 72px;
			align-items: end;

			h2 {
				font-size: 56px;
				line-height: 1.02;
				font-weight: 700;
				letter-spacing: -0.04em;
				margin: 0px;
			}
			& > div {
				&:last-of-type {
					& > p {
						color: rgb(60, 54, 69);
						font-size: 18px;
						line-height: 1.75;
						margin: 0px 0px 22px;
					}
					.highlights {
						display: flex;
						flex-wrap: wrap;
						gap: 28px;

						h6 {
							color: var(--Purple-Three);
							font-size: 26px;
							font-weight: 800;
							letter-spacing: -0.03em;
							line-height: 1em;
							margin: 0px;
						}
						p {
							color: rgb(107, 98, 117);
							font-size: 13px;
							margin: 0px;
						}
					}
				}
			}
		}
	}
}

.schedule-glance {
	background: #f6f4f8;
	color: #151318;
	padding-bottom: 75px;
	padding-top: 75px;

	/* Category colors */
	.learning {
		--color: #520196;
		--tint: #f2eaf7;
		--text: #520196;
	}

	.active {
		--color: #d62685;
		--tint: #fbe6f1;
		--text: #a01a63;
	}

	.meals {
		--color: #f08bbf;
		--tint: #fdeef6;
		--text: #a01a63;
	}

	.rest {
		--color: #b9a3cc;
		--tint: #efeaf4;
		--text: #6a5480;
	}

	/* Faded state when a filter is picked */
	.is-dimmed {
		opacity: 0.28;
	}

	.schedule-glance__inner {
		margin: 0 auto;

		/* Heading and filters */
		.schedule-glance__head {
			display: flex;
			justify-content: space-between;
			align-items: flex-end;
			gap: 24px;
			flex-wrap: wrap;
			margin-bottom: 28px;

			h2 {
				font-size: 36px;
				line-height: 1.1;
				font-weight: 800;
				letter-spacing: -0.03em;
				margin: 0 0 10px;
			}

			p {
				font-size: 15px;
				line-height: 1.7;
				color: #5c5566;
				margin: 0;
				max-width: 520px;
			}

			.schedule-glance__filters {
				display: flex;
				gap: 8px;
				flex-wrap: wrap;

				button {
					display: flex;
					align-items: center;
					gap: 8px;
					background: #ffffff;
					border: 1px solid #ddd2e5;
					color: #3c3645;
					font: inherit;
					font-size: 13px;
					font-weight: 700;
					padding: 9px 14px;
					border-radius: 999px;
					cursor: pointer;

					&.is-active {
						background: #151318;
						border-color: #151318;
						color: #ffffff;

						&[data-filter="all"] {
							.swatch {
								background: #fff;
							}
						}
					}

					.swatch {
						width: 10px;
						height: 10px;
						border-radius: 3px;
						background: var(--color, #151318);
					}
				}
			}
		}

		/* Day bar */
		.schedule-glance__bar-card {
			background: #ffffff;
			border-radius: 16px;
			padding: 22px 24px 18px;
			margin-bottom: 48px;

			.schedule-glance__bar {
				display: flex;
				height: 30px;
				gap: 2px;
				border-radius: 8px;
				overflow: hidden;

				span {
					background: var(--color);
					transition: opacity 0.2s;
				}
			}

			.schedule-glance__scale {
				display: flex;
				justify-content: space-between;
				margin-top: 10px;
				font-size: 12px;
				font-weight: 700;
				color: #6b6275;
			}
		}

		/* Timeline */
		.schedule-glance__timeline {
			position: relative;
			list-style: none;
			margin: 0;
			padding: 0;

			/* Vertical line through the dots */
			&::before {
				content: "";
				position: absolute;
				left: 139px;
				top: 8px;
				bottom: 8px;
				width: 2px;
				background: #ddd2e5;

				@media (max-width: 720px) {
					left: 81px;
				}
			}

			li {
				display: grid;
				grid-template-columns: 110px 60px 1fr;
				align-items: start;
				padding-bottom: 18px;
				transition: opacity 0.2s;

				@media (max-width: 720px) {
					grid-template-columns: 64px 36px 1fr;
				}

				.time {
					display: flex;
					flex-direction: column;
					text-align: right;
					padding-top: 18px;
					font-size: 19px;
					font-weight: 800;
					letter-spacing: -0.02em;

					span {
						font-size: 11px;
						font-weight: 700;
						letter-spacing: 0.08em;
						color: #6b6275;
					}
				}

				.dot {
					position: relative;
					justify-self: center;
					margin-top: 22px;
					width: 16px;
					height: 16px;
					border-radius: 50%;
					background: var(--color);
					border: 4px solid #f6f4f8;
					box-sizing: content-box;
				}

				.card {
					background: #ffffff;
					border-radius: 14px;
					padding: 20px 24px;
					display: grid;
					grid-template-columns: 44px 1fr auto;
					gap: 18px;
					align-items: center;

					@media (max-width: 720px) {
						grid-template-columns: 40px 1fr;
						gap: 14px;
						padding: 16px;
					}

					.icon {
						width: 44px;
						height: 44px;
						border-radius: 12px;
						background: var(--tint);
						color: var(--text);
						display: flex;
						align-items: center;
						justify-content: center;

						svg {
							width: 22px;
							height: 22px;
							fill: none;
							stroke: currentColor;
							stroke-width: 2;
							stroke-linecap: round;
							stroke-linejoin: round;
						}
					}

					h3 {
						font-size: 17px;
						font-weight: 800;
						letter-spacing: -0.015em;
						margin: 0 0 4px;
					}

					p {
						font-size: 14px;
						line-height: 1.6;
						color: #5c5566;
						margin: 0;
					}

					.tag {
						font-size: 11px;
						font-weight: 800;
						letter-spacing: 0.08em;
						text-transform: uppercase;
						color: var(--text);
						background: var(--tint);
						padding: 6px 10px;
						border-radius: 6px;
						white-space: nowrap;

						@media (max-width: 720px) {
							grid-column: 2;
							justify-self: start;
						}
					}
				}
			}
		}

		.schedule-glance__note {
			font-size: 13px;
			color: #6b6275;
			margin: 12px 0 0 170px;

			@media (max-width: 720px) {
				margin-left: 0;
			}
		}
	}
}

/* Monthly menu page */

/* Intro, meal times & notes */
.monthly-menu-intro {
	background: #ffffff;
	color: #151318;
	padding: 80px 48px 64px;

	@media (max-width: 720px) {
		padding: 56px 16px 48px;
	}

	/* Meal colors */
	.breakfast {
		--tint: #f2eaf7;
		--ink: #520196;
	}

	.lunch {
		--tint: #fbe6f1;
		--ink: #a01a63;
	}

	.snack {
		--tint: #fdeef6;
		--ink: #a01a63;
	}

	.dinner {
		--tint: #efeaf4;
		--ink: #6a5480;
	}

	svg {
		fill: none;
		stroke: currentColor;
		stroke-width: 2;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	.monthly-menu-intro__inner {
		max-width: 1280px;
		margin: 0 auto;

		.monthly-menu-intro__head {
			display: grid;
			grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
			gap: 32px 72px;
			align-items: end;
			margin-bottom: 56px;

			.eyebrow {
				display: block;
				font-size: 12px;
				font-weight: 800;
				letter-spacing: 0.14em;
				text-transform: uppercase;
				color: #d62685;
				margin-bottom: 18px;
			}

			h2 {
				font-size: 56px;
				line-height: 1.02;
				font-weight: 800;
				letter-spacing: -0.04em;
				margin: 0;
				text-wrap: balance;

				@media (max-width: 720px) {
					font-size: 40px;
				}
			}

			p {
				font-size: 18px;
				line-height: 1.75;
				color: #3c3645;
				margin: 0 0 22px;
			}

			.meal-key {
				display: flex;
				flex-wrap: wrap;
				gap: 10px;
				list-style: none;
				margin: 0;
				padding: 0;

				li {
					display: flex;
					align-items: center;
					gap: 10px;
					background: var(--tint);
					border-radius: 10px;
					padding: 10px 14px;

					svg {
						width: 18px;
						height: 18px;
						color: var(--ink);
					}

					strong {
						display: block;
						font-size: 13px;
						font-weight: 800;
					}

					span {
						display: block;
						font-size: 12px;
						font-weight: 600;
						color: #6b6275;
					}
				}
			}
		}

		.monthly-menu-intro__notes {
			display: grid;
			grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
			gap: 16px;

			.note {
				display: grid;
				grid-template-columns: 44px 1fr;
				gap: 16px;
				align-items: start;
				border: 1px solid #e8e4ed;
				border-radius: 16px;
				padding: 22px;

				.icon {
					width: 44px;
					height: 44px;
					border-radius: 12px;
					background: var(--tint);
					color: var(--ink);
					display: flex;
					align-items: center;
					justify-content: center;

					svg {
						width: 22px;
						height: 22px;
					}
				}

				h3 {
					font-size: 16px;
					font-weight: 800;
					letter-spacing: -0.01em;
					margin: 0 0 4px;
				}

				p {
					font-size: 14px;
					line-height: 1.6;
					color: #5c5566;
					margin: 0;
				}
			}
		}
	}
}

/* Day-by-day menu */
.monthly-menu {
	background: #f6f4f8;
	color: #151318;
	padding: 72px 48px 88px;

	@media (max-width: 720px) {
		padding: 56px 16px 64px;
	}

	/* Meal colors */
	.breakfast {
		--tint: #f2eaf7;
		--ink: #520196;
	}

	.lunch {
		--tint: #fbe6f1;
		--ink: #a01a63;
	}

	.snack {
		--tint: #fdeef6;
		--ink: #a01a63;
	}

	.dinner {
		--tint: #efeaf4;
		--ink: #6a5480;
	}

	.monthly-menu__inner {
		max-width: 1280px;
		margin: 0 auto;

		.monthly-menu__head {
			display: flex;
			justify-content: space-between;
			align-items: flex-end;
			gap: 24px;
			flex-wrap: wrap;
			margin-bottom: 32px;

			h2 {
				font-size: 36px;
				line-height: 1.1;
				font-weight: 800;
				letter-spacing: -0.03em;
				margin: 0 0 10px;
			}

			p {
				font-size: 15px;
				line-height: 1.7;
				color: #5c5566;
				margin: 0;
				max-width: 520px;
			}

			.monthly-menu__tabs {
				display: flex;
				gap: 8px;
				flex-wrap: wrap;

				button {
					background: #ffffff;
					border: 1px solid #ddd2e5;
					color: #3c3645;
					font: inherit;
					font-size: 13px;
					font-weight: 700;
					padding: 9px 14px;
					border-radius: 999px;
					white-space: nowrap;
					cursor: pointer;

					&.is-active {
						background: #151318;
						border-color: #151318;
						color: #ffffff;
					}
				}
			}
		}

		.monthly-menu__weeks {
			/* Only the picked week shows, unless "Full month" is on */
			&:not(.is-full) .week:not(.is-active) {
				display: none;
			}

			.week {
				margin-bottom: 40px;

				.week-head {
					display: flex;
					align-items: baseline;
					gap: 12px;
					margin-bottom: 16px;

					h3 {
						font-size: 20px;
						font-weight: 800;
						letter-spacing: -0.02em;
						margin: 0;
					}

					span {
						font-size: 13px;
						font-weight: 700;
						color: #6b6275;
					}
				}

				.days {
					display: grid;
					grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
					gap: 14px;

					.day {
						background: #ffffff;
						border-radius: 16px;
						padding: 20px 18px;
						display: flex;
						flex-direction: column;
						gap: 16px;

						.day-head {
							display: flex;
							justify-content: space-between;
							align-items: baseline;
							padding-bottom: 14px;
							border-bottom: 1px solid #eee8f2;

							.weekday {
								font-size: 12px;
								font-weight: 800;
								letter-spacing: 0.1em;
								text-transform: uppercase;
								color: #d62685;
							}

							.date {
								font-size: 18px;
								font-weight: 800;
								letter-spacing: -0.02em;
							}
						}

						.meal {
							.label {
								display: inline-block;
								font-size: 10px;
								font-weight: 800;
								letter-spacing: 0.1em;
								text-transform: uppercase;
								color: var(--ink);
								background: var(--tint);
								padding: 4px 8px;
								border-radius: 5px;
								margin-bottom: 6px;
							}

							p {
								font-size: 14px;
								line-height: 1.5;
								color: #3c3645;
								margin: 0;
							}
						}
					}
				}
			}
		}

		.monthly-menu__note {
			font-size: 13px;
			color: #6b6275;
			margin: 0;
		}
	}
}
