/*
 * Page sections: [up_hero], [up_steps], [up_chips], [up_faq], [up_band] (inc/sections.php),
 * and the landing page's [up_intro], [up_paths], [up_link_chips] (inc/paths.php).
 * Spec: docs/design/improv-school-2027/spec.md, "Page 2".
 */

/* ---- Shared -------------------------------------------------------------- */

.up-ds.up-section {
	max-width: var(--up-content);
	margin: 0 auto;
	padding: 40px 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.up-ds.up-section--narrow {
	max-width: var(--up-content-narrow);
}

/* Bands run the full width of the window from inside Salient's content column.
   Salient clips sideways overflow on html and body, so this never adds a scrollbar. */
.up-ds.up-bleed {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: var(--up-gutter);
	padding-right: var(--up-gutter);
}

.up-ds ol.up-steps__list,
.up-ds ul.up-chips__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.up-ds .up-steps__list > li,
.up-ds .up-chips__list > li {
	list-style: none;
	margin: 0;
}

/* ---- Hero ---------------------------------------------------------------- */

.up-ds.up-hero {
	background: var(--up-red);
	border-bottom: 6px solid var(--up-black);
	padding-top: 56px;
	padding-bottom: 56px;
}

.up-hero__inner {
	max-width: var(--up-content);
	margin: 0 auto;
}

.up-ds .up-hero__panel {
	max-width: 640px;
	background: var(--up-white);
	border-radius: var(--up-radius-card);
	padding: 36px 40px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.up-ds .up-hero__back {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	color: var(--up-link);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

.up-ds .up-hero__back:hover {
	color: var(--up-link-hover);
	text-decoration: underline;
}

html body .up-ds .up-hero__title {
	font-size: clamp(34px, 4.5vw, 54px);
	line-height: 1.05;
}

.up-ds .up-hero .up-script {
	font-size: clamp(30px, 3.5vw, 36px);
}

.up-ds .up-hero__text {
	margin: 0;
	padding: 0;
	font-size: 19px;
	line-height: 1.5;
	color: var(--up-gray);
}

/* ---- Steps --------------------------------------------------------------- */

.up-ds .up-steps__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
}

.up-ds .up-step {
	border-radius: 20px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.up-ds .up-step--red {
	background: var(--up-red);
	color: var(--up-white);
	--up-step-number: var(--up-yellow);
}

.up-ds .up-step--yellow {
	background: var(--up-yellow);
	color: var(--up-black);
	--up-step-number: var(--up-red);
}

.up-ds .up-step--black {
	background: var(--up-black);
	color: var(--up-white);
	--up-step-number: var(--up-yellow);
}

.up-ds .up-step__number {
	font-family: var(--up-font-display);
	font-size: 44px;
	line-height: 1;
	color: var(--up-step-number);
}

html body .up-ds .up-step__title {
	margin: 0;
	padding: 0;
	font-family: var(--up-font-body);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
	color: inherit;
}

.up-ds .up-step__text {
	margin: 0;
	padding: 0;
	font-size: 17px;
	line-height: 1.5;
	color: inherit;
}

.up-ds .up-step a {
	color: inherit;
	text-decoration: underline;
}

/* ---- Chips --------------------------------------------------------------- */

.up-ds .up-chips__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.up-ds .up-chips__chip {
	border-radius: var(--up-radius-pill);
	padding: 10px 18px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--up-black);
}

.up-ds .up-chips__chip--butter {
	background: var(--up-butter);
}

.up-ds .up-chips__chip--blush {
	background: var(--up-blush);
}

.up-ds .up-chips__chip--red {
	background: var(--up-red);
	color: var(--up-white);
	font-weight: 700;
}

/* ---- FAQ ----------------------------------------------------------------- */

.up-ds .up-faq__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.up-ds .up-faq__item {
	background: var(--up-butter);
	border-radius: var(--up-radius-panel);
	overflow: hidden;
}

html body .up-ds .up-faq__question {
	margin: 0;
	padding: 0;
	font-family: var(--up-font-body);
	letter-spacing: 0;
	font-size: inherit;
	line-height: inherit;
}

.up-ds .up-faq__question button {
	appearance: none;
	width: 100%;
	margin: 0;
	min-height: 64px;
	padding: 20px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: transparent;
	border: 0;
	border-radius: var(--up-radius-panel);
	color: var(--up-black);
	font-family: var(--up-font-body);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
	text-align: left;
	cursor: pointer;
	box-shadow: none;
}

.up-ds .up-faq__question button:focus-visible {
	outline-offset: -3px;
}

.up-ds .up-faq__sign {
	flex: none;
	width: 28px;
	text-align: center;
	font-size: 28px;
	font-weight: 500;
	line-height: 1;
	color: var(--up-red);
}

.up-ds .up-faq__sign::before {
	content: "+";
}

.up-ds .up-faq__question button[aria-expanded="true"] .up-faq__sign::before {
	content: "\2212"; /* minus sign */
}

.up-ds .up-faq__answer {
	padding: 0 24px 22px;
}

.up-ds .up-faq__answer p {
	margin: 0;
	padding: 0;
	font-size: 17px;
	line-height: 1.55;
	color: var(--up-gray);
}

.up-ds .up-faq__answer p + p {
	margin-top: 12px;
}

.up-ds.up-faq[id] {
	scroll-margin-top: 100px; /* clear Salient's sticky header when linked to */
}

.up-ds .up-faq__more {
	margin: 20px 0 0;
	padding: 0;
	font-size: 18px;
	font-weight: 600;
}

.up-ds a.up-faq__link {
	color: var(--up-red);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---- Band ---------------------------------------------------------------- */

.up-ds.up-band {
	padding-top: 56px;
	padding-bottom: 56px;
	color: var(--up-white);
}

.up-ds.up-band--red {
	background: var(--up-red);
}

.up-ds.up-band--black {
	background: var(--up-black);
}

.up-band__inner {
	max-width: var(--up-content);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.up-band__words {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 620px;
}

.up-ds .up-band__script {
	font-size: clamp(36px, 4vw, 44px);
	color: var(--up-white);
}

.up-ds.up-band--black .up-band__script {
	color: var(--up-yellow);
}

.up-ds .up-band__text {
	margin: 0;
	padding: 0;
	font-size: 19px;
	line-height: 1.5;
	color: var(--up-white);
}

.up-ds .up-band__text a {
	color: var(--up-white);
	text-decoration: underline;
}

.up-band__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---- Intro (landing page) ------------------------------------------------ */

.up-ds.up-intro {
	align-items: center;
	text-align: center;
	gap: 14px;
	padding-top: 56px;
	padding-bottom: 24px;
}

.up-ds .up-intro__logo {
	width: clamp(150px, 18vw, 180px);
	height: auto;
	margin-bottom: 8px;
}

.up-ds .up-intro__text {
	max-width: 640px;
	margin: 0;
	padding: 0;
	font-size: 20px;
	line-height: 1.5;
	color: var(--up-gray);
}

/* ---- Path cards ---------------------------------------------------------- */

.up-ds.up-paths {
	padding-top: 16px;
}

.up-ds .up-paths__list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.up-ds .up-path {
	border-radius: var(--up-radius-card);
	box-shadow: var(--up-shadow-card);
	overflow: hidden;
}

.up-ds .up-path--red {
	background: var(--up-red);
	color: var(--up-white);
	--up-icon-bg: var(--up-yellow);
	--up-icon-fg: var(--up-black);
	--up-ring: var(--up-yellow);
}

.up-ds .up-path--yellow {
	background: var(--up-yellow);
	color: var(--up-black);
	--up-icon-bg: var(--up-black);
	--up-icon-fg: var(--up-yellow);
	--up-ring: var(--up-black);
}

.up-ds .up-path--black {
	background: var(--up-black);
	color: var(--up-white);
	--up-icon-bg: var(--up-red);
	--up-icon-fg: var(--up-white);
	--up-ring: var(--up-yellow);
}

.up-ds .up-path--blush {
	background: var(--up-blush);
	color: var(--up-black);
	--up-icon-bg: var(--up-white);
	--up-icon-fg: var(--up-red);
	--up-ring: var(--up-black);
}

html body .up-ds .up-path__heading {
	margin: 0;
	padding: 0;
	font-family: var(--up-font-body);
	font-size: inherit;
	line-height: inherit;
	letter-spacing: 0;
	color: inherit;
}

.up-ds .up-path__heading button {
	appearance: none;
	width: 100%;
	min-height: 104px;
	margin: 0;
	padding: 26px 30px;
	display: flex;
	align-items: center;
	gap: 20px;
	background: transparent;
	border: 0;
	border-radius: var(--up-radius-card);
	color: inherit;
	font: inherit;
	letter-spacing: 0;
	text-transform: none;
	text-align: left;
	cursor: pointer;
	box-shadow: none;
}

.up-ds .up-path__heading button:focus-visible {
	outline: 3px solid var(--up-ring);
	outline-offset: -6px;
}

.up-ds .up-path__icon {
	flex: none;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--up-icon-bg);
	color: var(--up-icon-fg);
}

.up-ds .up-path__label {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.up-ds .up-path__eyebrow {
	font-size: 14px;
}

html body .up-ds .up-path__title {
	display: block;
	color: inherit;
}

.up-ds .up-path__chevron {
	flex: none;
	width: 46px;
	height: 46px;
	border: 2px solid currentColor;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s;
}

.up-ds .up-path__heading button[aria-expanded="true"] .up-path__chevron {
	transform: rotate(180deg);
}

.up-ds .up-path__panel {
	margin: 0 18px 18px;
	padding: 28px;
	background: var(--up-white);
	border-radius: var(--up-radius-panel);
	color: var(--up-black);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.up-ds .up-path__pitch {
	margin: 0;
	padding: 0;
	font-size: 20px;
	line-height: 1.5;
	color: var(--up-black);
}

.up-ds ul.up-path__tiles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
}

.up-ds .up-path__tiles > li {
	list-style: none;
	margin: 0;
}

.up-ds .up-path__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---- Link chips band ----------------------------------------------------- */

.up-ds.up-links {
	background: var(--up-butter);
	padding-top: 48px;
	padding-bottom: 48px;
}

.up-links__inner {
	max-width: var(--up-content);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.up-ds ul.up-links__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.up-ds .up-links__list > li {
	list-style: none;
	margin: 0;
}

/* ---- Phones -------------------------------------------------------------- */

@media (max-width: 600px) {
	.up-ds .up-path__heading button {
		padding: 20px 18px;
		gap: 14px;
		min-height: 88px;
	}

	.up-ds .up-path__icon {
		width: 48px;
		height: 48px;
	}

	.up-ds .up-path__icon svg {
		width: 24px;
		height: 24px;
	}

	.up-ds .up-path__chevron {
		width: 40px;
		height: 40px;
	}

	.up-ds .up-path__panel {
		margin: 0 10px 10px;
		padding: 22px 18px;
	}

	.up-ds .up-path__pitch {
		font-size: 18px;
	}

	.up-ds .up-path__buttons .up-btn {
		width: 100%;
	}

	.up-ds.up-hero {
		padding-top: 32px;
		padding-bottom: 32px;
	}

	.up-ds .up-hero__panel {
		padding: 26px 22px;
	}

	.up-ds .up-faq__question button {
		padding: 18px 18px;
	}

	.up-ds .up-faq__answer {
		padding: 0 18px 20px;
	}
}
