/* Research index pages (/research/ hub and /research/<vertical>/). Mirrors the
   research-article hero and palette so an index and its articles read as one
   property. Tokens are repeated here because Core cannot depend on a vertical
   plugin's stylesheet; keep the values in step with research-article.css. */

body:has(.g2m-tri) #brx-content .brxe-section:has(.g2m-tri) {
	padding: 0;
}

body:has(.g2m-tri) #brx-content .brxe-container:has(.g2m-tri),
body:has(.g2m-tri) #brx-content .brxe-shortcode:has(> .g2m-tri) {
	width: 100%;
	max-width: none;
}

body:has(.g2m-tri) #brx-header .header__logo-light {
	filter: brightness(0) invert(1);
}

body:has(.g2m-tri) #brx-header .header__getstarted,
body:has(.g2m-tri) #brx-header .header__menu-icon {
	color: #ffffff !important;
}

.g2m-tri {
	--g2m-tri-navy: #182630;
	--g2m-tri-navy-soft: #263b48;
	--g2m-tri-teal: #2fa4b8;
	--g2m-tri-teal-soft: #e3f3f6;
	--g2m-tri-ink: #1f2933;
	--g2m-tri-muted: #4b5563;
	--g2m-tri-line: #d7dde2;
	--g2m-tri-surface: #ffffff;
	--g2m-tri-radius: 8px; /* the site's --radius */
	display: block;
	width: 100%;
	color: var(--g2m-tri-ink);
	background: transparent;
	font-family: univia-pro, sans-serif;
	font-size: 18px;
	line-height: 1.45;
	isolation: isolate;
}

.g2m-tri,
.g2m-tri * {
	box-sizing: border-box;
}

.g2m-tri h1,
.g2m-tri h2,
.g2m-tri h3,
.g2m-tri h4,
.g2m-tri p {
	margin-top: 0;
	font-family: inherit;
	text-align: left;
}

.g2m-tri__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

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

.g2m-tri__hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
	gap: 2rem clamp(2rem, 6vw, 6rem);
	align-items: start;
	overflow: hidden;
	/* Shorter than the article hero: this page's job is to get the reader to a card.
	   The top padding must still clear the site's fixed header; the saving is at the bottom. */
	padding: clamp(5rem, 6.5vw, 6rem) clamp(2.5rem, 8.5vw, 7rem) clamp(2.25rem, 3.5vw, 3rem);
	color: #ffffff;
	background:
		radial-gradient(circle at 86% 14%, rgba(47, 164, 184, 0.28), transparent 24rem),
		linear-gradient(132deg, var(--g2m-tri-navy), var(--g2m-tri-navy-soft));
}

.g2m-tri__hero-primary,
.g2m-tri__hero-aside {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.g2m-tri__hero-aside {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* Faint metro map behind the hero text, anchored to the right. */
.g2m-tri__map--hero {
	position: absolute;
	right: -6%;
	bottom: -38%;
	z-index: 0;
	width: min(64%, 920px);
	height: auto;
	opacity: 0.32;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%), linear-gradient(180deg, transparent 0%, #000 30%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(90deg, transparent 0%, #000 40%), linear-gradient(180deg, transparent 0%, #000 30%);
	mask-composite: intersect;
}

/* Stats strip: the vertical's own headline numbers. */
.g2m-tri__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem 2rem;
	margin: 0;
}

.g2m-tri__stat {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding-left: 0.9rem;
	border-left: 2px solid var(--g2m-tri-teal);
}

.g2m-tri__stat dd {
	margin: 0;
	color: #ffffff;
	font-size: clamp(1.7rem, 2.4vw, 2.25rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
}

.g2m-tri__stat dt {
	margin: 0;
	color: #c8d5dc;
	font-size: 13px;
	line-height: 1.35;
}

.g2m-tri__eyebrow {
	margin-bottom: 0.9rem;
	color: var(--g2m-tri-teal);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.g2m-tri__title {
	max-width: 16ch;
	margin-bottom: 0;
	color: inherit;
	font-size: clamp(2.5rem, 4.4vw, 3.9rem);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -0.02em;
}

.g2m-tri__lede {
	max-width: 58ch;
	margin: 1.5rem 0 0;
	color: #dfe7eb;
	font-size: clamp(1.05rem, 1.5vw, 1.15rem);
	line-height: 1.6;
}

.g2m-tri__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	color: #c8d5dc;
	font-size: 13px;
	line-height: 1.45;
}

.g2m-tri__meta strong {
	color: #ffffff;
	font-weight: 700;
}

/* ---------- Body ---------- */

/* Bricks and Automatic.css turn generic divs inside a section into a centered
   flex column with a row gap, which shrinks cards to their content width and
   floats headings. Pin every wrapper to block layout at full width. */
.g2m-tri__body,
.g2m-tri__group,
.g2m-tri__group-head,
.g2m-tri__feature,
.g2m-tri__lead,
.g2m-tri__lead-main,
.g2m-tri__grid,
.g2m-tri__card {
	width: 100%;
	gap: 0;
	align-items: stretch;
}

.g2m-tri__body,
.g2m-tri__group,
.g2m-tri__feature,
.g2m-tri__lead-main,
.g2m-tri__group-title {
	display: block;
}

.g2m-tri__body {
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(2rem, 3.5vw, 3.25rem) 48px clamp(3rem, 5vw, 5rem);
}

.g2m-tri__group + .g2m-tri__group {
	margin-top: clamp(3rem, 5vw, 4.5rem);
	padding-top: clamp(2.5rem, 4vw, 3.5rem);
	border-top: 1px solid var(--g2m-tri-line);
}

.g2m-tri__group-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: 1rem 3rem;
	align-items: end;
	margin-bottom: 2rem;
}

.g2m-tri__group-head h2 {
	margin: 0;
	font-size: clamp(1.75rem, 2.6vw, 2.25rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.g2m-tri__group-head h2 a {
	color: var(--g2m-tri-navy);
	text-decoration: none;
}

.g2m-tri__group-head h2 a:hover,
.g2m-tri__group-head h2 a:focus-visible {
	color: var(--g2m-tri-teal);
}

.g2m-tri__group-head p {
	margin: 0;
	color: var(--g2m-tri-muted);
	font-size: 1rem;
	line-height: 1.55;
}

.g2m-tri__kind {
	display: block;
	margin-bottom: 0.7rem;
	color: var(--g2m-tri-teal);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Featured explorer card */

.g2m-tri__feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
	gap: 1.5rem clamp(1.5rem, 3vw, 3rem);
	align-items: center;
	margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
	padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 3rem);
	border: 1px solid var(--g2m-tri-line);
	border-left: 6px solid var(--g2m-tri-teal);
	border-radius: var(--g2m-tri-radius);
	color: var(--g2m-tri-ink);
	background: var(--g2m-tri-teal-soft);
	text-decoration: none;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

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

.g2m-tri__feature-text,
.g2m-tri__feature-visual {
	min-width: 0;
}

.g2m-tri__feature-visual .g2m-tri__map {
	display: block;
	width: 100%;
	height: auto;
	margin: -0.5rem 0;
	transition: transform 400ms ease;
}

.g2m-tri__feature:hover .g2m-tri__map {
	transform: scale(1.02);
}

.g2m-tri__kind--pinned {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

/* A small pin: teal disc with a white pin-head, drawn in CSS. */
.g2m-tri__pin {
	position: relative;
	display: inline-block;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--g2m-tri-teal);
	flex: none;
}

.g2m-tri__pin::before {
	content: "";
	position: absolute;
	top: 4px;
	left: 6px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ffffff;
}

.g2m-tri__pin::after {
	content: "";
	position: absolute;
	top: 9px;
	left: 8.25px;
	width: 1.5px;
	height: 5px;
	background: #ffffff;
}

.g2m-tri__feature-title {
	max-width: 24ch;
	margin-bottom: 0.75rem;
	color: var(--g2m-tri-navy);
	font-size: clamp(1.6rem, 2.4vw, 2.1rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.01em;
}

.g2m-tri__feature-deck {
	max-width: 64ch;
	margin-bottom: 1.25rem;
	color: var(--g2m-tri-ink);
	font-size: 1.0625rem;
	line-height: 1.6;
}

/* Arrow link, as the site's "Request a Demo" link: bold ink, teal arrow, rule beneath. */
.g2m-tri__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding-bottom: 0.35rem;
	border-bottom: 1px solid var(--g2m-tri-navy);
	color: var(--g2m-tri-navy);
	font-weight: 700;
	text-decoration: none;
	transition: color 160ms ease, border-color 160ms ease, gap 160ms ease;
}

.g2m-tri__cta > span {
	color: var(--g2m-tri-teal);
	font-size: 1.25em;
	line-height: 1;
}

.g2m-tri__feature:hover .g2m-tri__cta,
.g2m-tri__feature:focus-visible .g2m-tri__cta,
.g2m-tri__cta:hover,
.g2m-tri__cta:focus-visible {
	gap: 0.9rem;
	border-color: var(--g2m-tri-teal);
	color: var(--g2m-tri-teal);
}

/* Lead article: the newest piece, full width above the grid */

.g2m-tri__lead {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.4fr);
	gap: 1.5rem clamp(2rem, 4vw, 4rem);
	align-items: end;
	margin-bottom: 1.5rem;
	padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
	border: 1px solid var(--g2m-tri-line);
	border-left: 6px solid var(--g2m-tri-navy);
	border-radius: var(--g2m-tri-radius);
	background: var(--g2m-tri-surface);
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

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

.g2m-tri__lead-main,
.g2m-tri__lead-aside {
	min-width: 0;
}

.g2m-tri__lead-title {
	max-width: 28ch;
	margin-bottom: 0.85rem;
	font-size: clamp(1.6rem, 2.4vw, 2.1rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.01em;
}

.g2m-tri__lead-title a {
	color: var(--g2m-tri-navy);
	text-decoration: none;
}

.g2m-tri__lead-title a:hover,
.g2m-tri__lead-title a:focus-visible {
	color: var(--g2m-tri-teal);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.g2m-tri__lead-deck {
	max-width: 64ch;
	margin-bottom: 0;
	color: var(--g2m-tri-ink);
	font-size: 1.0625rem;
	line-height: 1.6;
}

.g2m-tri__lead-aside {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.g2m-tri__lead-aside .g2m-tri__card-meta {
	padding-top: 0;
	border-top: 0;
}

.g2m-tri__lead-aside .g2m-tri__cta {
	align-self: flex-start;
}

/* Article grid */

.g2m-tri__group-title {
	margin-bottom: 1.25rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid var(--g2m-tri-line);
	color: var(--g2m-tri-navy);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

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

.g2m-tri__card {
	display: flex;
	flex-direction: column;
	padding: 1.5rem 1.5rem 1.4rem;
	border: 1px solid var(--g2m-tri-line);
	border-radius: var(--g2m-tri-radius);
	background: var(--g2m-tri-surface);
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

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

.g2m-tri__card-title {
	margin-bottom: 0.7rem;
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.g2m-tri__card-title a {
	color: var(--g2m-tri-navy);
	text-decoration: none;
}

.g2m-tri__card-title a:hover,
.g2m-tri__card-title a:focus-visible {
	color: var(--g2m-tri-teal);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.g2m-tri__card-deck {
	flex: 1 1 auto;
	margin-bottom: 1rem;
	color: var(--g2m-tri-ink);
	font-size: 1rem;
	line-height: 1.55;
}

.g2m-tri__card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.25rem;
	margin: 0;
	padding-top: 0.85rem;
	border-top: 1px solid var(--g2m-tri-line);
	color: var(--g2m-tri-muted);
	font-size: 13px;
	line-height: 1.45;
}

.g2m-tri__card-meta a {
	color: var(--g2m-tri-teal);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Reuse terms, once, beneath the lists rather than in the hero. The selector
   carries the root class so its top margin outranks the shared paragraph reset. */
.g2m-tri .g2m-tri__note {
	max-width: calc(78ch + 3rem);
	margin: clamp(2.5rem, 4vw, 3.5rem) 0 0;
	padding: 1.1rem 1.5rem 0;
	border-top: 1px solid var(--g2m-tri-line);
	color: var(--g2m-tri-muted);
	font-size: 14px;
	line-height: 1.55;
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
	.g2m-tri__body {
		padding-right: 32px;
		padding-left: 32px;
	}
}

@media (max-width: 900px) {
	.g2m-tri__hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.75rem;
	}

	.g2m-tri__title {
		max-width: 22ch;
	}

	.g2m-tri__map--hero {
		right: -20%;
		bottom: auto;
		top: 0;
		width: 90%;
		opacity: 0.25;
	}

	.g2m-tri__feature {
		grid-template-columns: minmax(0, 1fr);
	}

	.g2m-tri__feature-visual {
		order: -1;
		max-width: 420px;
	}

	.g2m-tri__group-head {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

	.g2m-tri__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.g2m-tri__lead {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}
}

@media (max-width: 760px) {
	.g2m-tri {
		font-size: 17px;
	}

	.g2m-tri__body {
		padding: 2rem 1.125rem 2.5rem;
	}

	.g2m-tri__card,
	.g2m-tri__lead {
		padding: 1.25rem 1.125rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.g2m-tri__feature,
	.g2m-tri__lead,
	.g2m-tri__card,
	.g2m-tri__feature-visual .g2m-tri__map {
		transition: none;
	}
}
