/*
 * Section 2 — "Where do you start?"
 *
 * Two columns: copy on the left at two fifths of the content width, five rows on the right taking
 * whatever is left. Below 810px they stack.
 *
 * The hairlines between the rows are not borders. The design has no border width anywhere in here,
 * and no box-shadow either — it draws them with pseudo-elements, which is why nothing in the box
 * dump reported them and the colour had to come from a sampled pixel. They are inset shadows here
 * so that a 92px row stays 92px; a 1px border would make it 93 and move every row below it.
 */

.as-prompts {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	/*
	 * At least the window, and taller when the rows need it: 985 of content on the phone becomes 1000
	 * at a 1000px window and stays 985 at 800. Read at three window heights, October 2026 revision.
	 */
	min-height: 100vh;
	padding: 96px 32px;
	background: var(--as-off-white);
}

.as-prompts__inner {
	display: flex;
	column-gap: 40px;
	align-items: flex-start;
	width: 100%;
	max-width: var(--as-container);
}

/*
 * Two fifths of the content width exactly: 512 of 1280, 454 of 1136, 298 of 746. The padding below
 * it is the design's own and has to be kept — it is what makes the block 533 tall rather than 244,
 * and the whole thing is vertically centred, so dropping it would move every box in the section up
 * by 145px.
 */
.as-prompts__intro {
	display: flex;
	flex: 0 0 40%;
	flex-direction: column;
	gap: 20px;
	padding-bottom: 289px;
}

.as-prompts__eyebrow {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	/* 3.52 ÷ 11. The widest tracking on the page by a long way. */
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--as-red-deep);
}

.as-prompts__title {
	font-size: 36px;
	font-weight: 600;
	line-height: var(--as-lh-heading);
	letter-spacing: -0.02em;
	color: var(--as-navy-text);
}

.as-prompts__lead {
	font-size: 16px;
	font-weight: 400;
	line-height: var(--as-lh-loose);
	letter-spacing: normal;
	color: var(--as-slate);
}

/* ── The five rows ───────────────────────────────────────────────────────── */

.as-prompts__list {
	/* The last hairline belongs to the list rather than to the row above it. */
	box-shadow: inset 0 -1px 0 var(--as-rule);
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.as-prompt {
	box-shadow: inset 0 1px 0 var(--as-rule);
}

/*
 * The closed row is 92px tall, but not by being told so. The chevron is 44 and the padding is 24 top
 * and bottom, which comes to 92 on its own — and that is the point: where a label wraps to two lines
 * the row grows to 104 instead. A fixed 92 matched at the two desktop widths and then drifted 24px
 * down the list at 810 and 36px at 390, because the design is not holding the row still, it is
 * holding the padding.
 */
.as-prompt__head {
	display: flex;
	gap: 0;
	align-items: center;
	justify-content: space-between;
	padding: 24px 0;
	color: var(--as-charcoal);
	cursor: pointer;
	/* Both of these: the triangle is a list marker in Firefox and a pseudo-element in Safari. */
	list-style: none;
}

.as-prompt__head::-webkit-details-marker {
	display: none;
}

.as-prompt__label {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 20px;
	font-weight: 500;
	line-height: var(--as-lh-row);
	letter-spacing: normal;
}

/*
 * A 44px square outline with a 4x8 chevron in the middle of it. border-box so the square stays 44
 * and the hairline falls on the same pixel as the ones between the rows.
 */
.as-prompt__chevron {
	display: flex;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 44px;
	border: 1px solid var(--as-rule);
	color: var(--as-ink);
}

/* ── Open ────────────────────────────────────────────────────────────────── */

/*
 * The 24px below the panel belongs to the open row rather than to the panel, which is why it is here
 * and not in `.as-prompt__panel`: a closed row has to stay exactly 92, and padding on the details
 * element would be drawn in both states.
 */
.as-prompt[open] {
	padding-bottom: 24px;
}

.as-prompt[open] .as-prompt__label {
	color: var(--as-red-deep);
}

/* The square fills and the mark inverts. The mark follows `color`, so there is one icon, not two. */
.as-prompt[open] .as-prompt__chevron {
	border-color: var(--as-red-deep);
	background: var(--as-red-deep);
	color: var(--as-white);
}

.as-prompt__panel {
	display: flex;
	flex-direction: column;
	/* The design's own gap, and it is not a round number. */
	gap: 15.75px;
	align-items: flex-start;
	padding-bottom: 1px;
}

/*
 * The paragraph stops at 672 while the row is 728, so the last line breaks earlier than the row
 * would make it. Below 1200 the row is narrower than the cap and it costs nothing.
 */
.as-prompt__body {
	max-width: 672px;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	/* 22.75 ÷ 14. */
	line-height: 1.625;
	letter-spacing: normal;
	color: var(--as-slate);
}

.as-prompt__link {
	display: flex;
	flex-direction: row;
	gap: 8px;
	align-items: center;
	font-size: 14px;
	font-weight: 600;
	/*
	 * In pixels, unlike every other line-height here, because 20 ÷ 14 has no exact decimal: the ratio
	 * rounds to 20.0004px and the link row is 20 tall in the design. The paragraph above keeps its
	 * ratio because 22.75 ÷ 14 is exactly 1.625.
	 */
	line-height: 20px;
	color: var(--as-red-deep);
	text-decoration: none;
}

/*
 * The 16px box is what sets the link's width; the mark inside it is not centred. The design puts the
 * 5x9 glyph 7 across and 2 down, which is 1.5px right and 3px up from centre — small, but the box
 * above it matches to the pixel and this would have been the only thing in the row that did not.
 */
.as-prompt__link-mark {
	display: flex;
	flex: 0 0 16px;
	align-items: flex-start;
	justify-content: flex-start;
	box-sizing: border-box;
	height: 16px;
	padding: 2px 0 0 7px;
}

/* ── Phone: below 810 ────────────────────────────────────────────────────── */

@media (max-width: 809px) {
	.as-prompts {
		padding: 80px 16px;
	}

	.as-prompts__inner {
		flex-direction: column;
		gap: 40px;
	}

	.as-prompts__intro {
		flex-basis: auto;
		align-self: stretch;
		padding-bottom: 0;
	}
}
