/*
 * The 2027 planning landing page. The hero, body, group heads, eyebrow, kind label and arrow
 * links come from Core's research-index.css (.g2m-tri), so the page reads as part of the
 * research property. This file adds the hero's buttons and check index, the check cards, the
 * review steps and the closing call to action.
 */
.g2m-p27 {
	--g2m-p27-radius: 18px; /* the site's case cards */
}

.g2m-p27 .g2m-p27__title { max-width: 18ch; }

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

.g2m-p27__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
	margin-top: 2rem;
}

/* As the site's buttons: teal, 8px corners, small uppercase label. */
.g2m-p27 .g2m-p27__button {
	display: inline-block;
	padding: 0.9rem 1.4rem;
	border-radius: var(--g2m-tri-radius);
	background: var(--g2m-tri-teal);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.05em;
	line-height: 1.3;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 160ms ease, color 160ms ease;
}

.g2m-p27 .g2m-p27__button:hover,
.g2m-p27 .g2m-p27__button:focus-visible {
	background: #ffffff;
	color: var(--g2m-tri-navy);
}

.g2m-p27 .g2m-p27__jump {
	color: #ffffff;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.5);
	padding-bottom: 0.25rem;
}

.g2m-p27 .g2m-p27__jump span { color: #83d0dd; }
.g2m-p27 .g2m-p27__jump:hover,
.g2m-p27 .g2m-p27__jump:focus-visible { border-color: #83d0dd; }

/* The check index: one row per check, its name and headline figure. */
.g2m-p27__index-head {
	margin: 0 0 0.5rem;
	color: #c8d5dc;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.g2m-p27__index ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.g2m-p27__index li + li { border-top: 1px solid rgba(255, 255, 255, 0.14); }

.g2m-p27 .g2m-p27__index a {
	display: grid;
	grid-template-columns: 2.25rem minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 0.75rem;
	padding: 0.8rem 0;
	color: #dfe7eb;
	font-size: 1rem;
	text-decoration: none;
	transition: color 160ms ease;
}

.g2m-p27__index strong {
	color: #ffffff;
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
}

.g2m-p27 .g2m-p27__index a:hover,
.g2m-p27 .g2m-p27__index a:focus-visible { color: #ffffff; }
.g2m-p27 .g2m-p27__index a:hover .g2m-p27__num { color: #ffffff; }

.g2m-p27__num {
	color: var(--g2m-tri-teal);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	font-variant-numeric: tabular-nums;
}

/* ---------- Check cards ---------- */

.g2m-p27__checks {
	display: grid;
	gap: 1.5rem;
}

.g2m-p27__check {
	display: grid;
	grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
	gap: 1.5rem clamp(2rem, 4vw, 4rem);
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border: 1px solid var(--g2m-tri-line);
	border-radius: var(--g2m-p27-radius);
	background: var(--g2m-tri-surface);
	scroll-margin-top: 7rem;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.g2m-p27__check:hover,
.g2m-p27__check:focus-within {
	border-color: var(--g2m-tri-teal);
	box-shadow: 0 8px 24px rgba(24, 38, 48, 0.08);
}

.g2m-p27__figure,
.g2m-p27__text { min-width: 0; }

.g2m-p27__figure {
	padding-right: clamp(1rem, 2vw, 2rem);
	border-right: 1px solid var(--g2m-tri-line);
}

.g2m-p27__figure .g2m-tri__kind { display: flex; gap: 0.6rem; }

.g2m-p27 .g2m-p27__value {
	margin: 0.25rem 0 0.5rem;
	color: var(--g2m-tri-navy);
	font-size: clamp(2.6rem, 4vw, 3.5rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.03em;
	white-space: nowrap;
}

.g2m-p27 .g2m-p27__label {
	margin: 0 0 1.25rem;
	color: var(--g2m-tri-muted);
	font-size: 15px;
	line-height: 1.45;
}

.g2m-p27 .g2m-p27__also {
	margin: 0;
	padding-top: 1rem;
	border-top: 1px solid var(--g2m-tri-line);
	color: var(--g2m-tri-muted);
	font-size: 14px;
	line-height: 1.45;
}

.g2m-p27__also strong {
	display: block;
	margin-bottom: 0.2rem;
	color: var(--g2m-tri-navy);
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.g2m-p27__text h3 {
	margin: 0 0 0.85rem;
	color: var(--g2m-tri-navy);
	font-size: clamp(1.4rem, 2vw, 1.75rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.g2m-p27__text > p {
	max-width: 68ch;
	margin-bottom: 1.25rem;
	font-size: 1.0625rem;
	line-height: 1.6;
}

/* The question the finding puts to a plan: the one thing to take away from each card. */
.g2m-p27 .g2m-p27__question {
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--g2m-tri-teal);
	border-radius: 0 var(--g2m-tri-radius) var(--g2m-tri-radius) 0;
	background: var(--g2m-tri-teal-soft);
	color: var(--g2m-tri-ink);
}

.g2m-p27__question strong {
	display: block;
	margin-bottom: 0.3rem;
	color: var(--g2m-tri-navy);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.g2m-p27__reads {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
}

/* ---------- Review steps ---------- */

.g2m-p27__steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.g2m-p27__step {
	padding: 1.5rem;
	border-radius: var(--g2m-p27-radius);
	background: #fafafa;
	border: 1px solid var(--g2m-tri-line);
}

.g2m-p27__step h3 {
	margin: 0.6rem 0 0.5rem;
	color: var(--g2m-tri-navy);
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.25;
}

.g2m-p27__step p {
	margin: 0;
	color: var(--g2m-tri-muted);
	font-size: 15px;
	line-height: 1.55;
}

/* ---------- Closing call to action ---------- */

.g2m-p27__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	padding: clamp(1.75rem, 3.5vw, 3rem);
	border-radius: var(--g2m-p27-radius);
	color: #ffffff;
	background:
		radial-gradient(circle at 90% 10%, rgba(47, 164, 184, 0.3), transparent 20rem),
		linear-gradient(132deg, var(--g2m-tri-navy), var(--g2m-tri-navy-soft));
}

.g2m-p27__cta > div { min-width: 0; }

.g2m-p27 .g2m-p27__cta-kicker {
	margin: 0 0 0.6rem;
	color: #83d0dd;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.g2m-p27 .g2m-p27__cta h2 {
	max-width: 24ch;
	margin: 0;
	color: #ffffff;
	font-size: clamp(1.6rem, 2.6vw, 2.2rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

/* The index caps its note at reading width and indents it; here it spans the cards above it. */
.g2m-p27 .g2m-p27__note {
	max-width: none;
	margin-top: 1.5rem;
	padding: 1.1rem 0 0;
	color: var(--g2m-tri-muted);
	font-size: 14px;
	line-height: 1.55;
}

.g2m-p27__note a { color: var(--g2m-tri-navy); font-weight: 700; }

/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {
	.g2m-p27__check { grid-template-columns: minmax(0, 1fr); }
	.g2m-p27__figure { padding: 0 0 1.25rem; border-right: 0; border-bottom: 1px solid var(--g2m-tri-line); }
	.g2m-p27__steps { grid-template-columns: minmax(0, 1fr); }
	.g2m-p27__cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
	.g2m-p27__check { padding: 1.25rem 1.125rem; }
	.g2m-p27 .g2m-p27__index a { grid-template-columns: 2rem minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
	.g2m-p27__check,
	.g2m-p27 .g2m-p27__button { transition: none; }
}

@media print {
	.g2m-p27__actions,
	.g2m-p27__cta { display: none; }
}
