/*
 * Mateo components (template-parts/mateo/*).
 * Plain CSS, no build step. Scoped to .mateo so nothing leaks into other templates.
 *
 * Visual language taken from the live site (gen-ai-agent page, new_hero.php, cardstack-2col.php):
 * Arboria everywhere, light 42px section headings with one coloured highlight, blue gradient hero with
 * rounded bottom corners, light-blue rounded cards, pill buttons with an arrow.
 */

.mateo {
	--mateo-blue: #0065ed;
	--mateo-blue-bright: #006dff;
	--mateo-blue-dark: #0245a0;
	--mateo-yellow: #fab530;
	--mateo-green: #4caf50;
	--mateo-green-dark: #3d9a41;
	--mateo-ink: #1c2025;
	--mateo-text: #3f5060;
	--mateo-muted: #5f6f7f;
	--mateo-card: #f3f8fd;
	--mateo-tint: #e6f0fd;
	--mateo-border: #d6e2f0;
	--mateo-white: #fff;
	--mateo-radius-sm: 12px;
	--mateo-radius: 16px;
	--mateo-radius-lg: 24px;
	--mateo-container: 1200px;
	--mateo-gutter: 24px;
	--mateo-font: tk-arboria-n4, sans-serif;
	--mateo-font-medium: tk-arboria-n5, tk-arboria-n4, sans-serif;
	--mateo-font-bold: tk-arboria-n7, tk-arboria-n4, sans-serif;
	--mateo-focus: 0 0 0 3px rgba(0, 109, 255, .35);

	color: var(--mateo-text);
	font-family: var(--mateo-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.mateo *,
.mateo *::before,
.mateo *::after {
	box-sizing: border-box;
}

.mateo :where(h1, h2, h3, h4, p, ul, ol, figure) {
	margin: 0;
}

.mateo :where(h1, h2, h3, h4) {
	font-weight: 400;
}

.mateo :where(ul, ol) {
	list-style: none;
	padding: 0;
}

.mateo img {
	display: block;
	max-width: 100%;
	height: auto;
}

.mateo a {
	color: inherit;
}

.mateo :focus-visible {
	outline: none;
	box-shadow: var(--mateo-focus);
}

.mateo [hidden] {
	display: none !important;
}

.mateo .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Layout ------------------------------------------------------------------ */

.mateo-container {
	width: 100%;
	max-width: calc(var(--mateo-container) + var(--mateo-gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--mateo-gutter);
}

.mateo-container--narrow {
	max-width: calc(880px + var(--mateo-gutter) * 2);
}

.mateo-section {
	padding: 64px 0;
}

@media (min-width: 960px) {
	.mateo-section {
		padding: 90px 0;
	}
}

.mateo-section__header {
	max-width: 760px;
	margin: 0 auto 40px;
	text-align: center;
}

.mateo-section__header--left {
	margin-left: 0;
	text-align: left;
}

/* Type -------------------------------------------------------------------- */

.mateo-eyebrow {
	margin-bottom: 12px;
	color: var(--mateo-green);
	font-family: var(--mateo-font-bold);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: .15px;
	text-transform: uppercase;
}

.mateo-eyebrow--light {
	color: var(--mateo-yellow);
}

.mateo-h2 {
	color: var(--mateo-ink);
	font-family: var(--mateo-font);
	font-size: clamp(30px, 3.4vw, 42px);
	font-weight: 400;
	line-height: 1.235;
}

.mateo-accent--blue {
	color: var(--mateo-blue);
}

.mateo-accent--yellow {
	color: var(--mateo-yellow);
}

.mateo-accent--green {
	color: var(--mateo-green);
}

.mateo-h4 {
	color: var(--mateo-ink);
	font-family: var(--mateo-font-medium);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
	margin-bottom: 8px;
}

.mateo-lead {
	margin-top: 16px;
	color: var(--mateo-text);
	font-size: 18px;
	line-height: 1.55;
}

.mateo-label {
	display: block;
	color: var(--mateo-ink);
	font-family: var(--mateo-font-medium);
	font-size: 14px;
	font-weight: 500;
}

/* Buttons (pill + arrow, as on the site) ---------------------------------- */

.mateo-arrow {
	flex: none;
	width: 1.125em;
	height: 1.125em;
	transition: transform .2s;
}

.mateo .mateo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44.5px;
	padding: 6px 28px;
	border: 2px solid transparent;
	border-radius: 9999px;
	font-family: var(--mateo-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: .15px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s;
}

.mateo .mateo-btn:hover .mateo-arrow {
	transform: translateX(3px);
}

.mateo-btn--block {
	display: flex !important;
	width: 100%;
}

.mateo-btn--sm {
	min-height: 38px !important;
	padding: 4px 18px !important;
	font-size: 15px !important;
}

/* Filled blue ("Book a Demo" in the header, "Watch Now"). */
.mateo .mateo-btn--primary {
	background: var(--mateo-blue-bright);
	border-color: var(--mateo-blue-bright);
	color: var(--mateo-white);
}

.mateo .mateo-btn--primary:hover {
	background: var(--mateo-blue-dark);
	border-color: var(--mateo-blue-dark);
}

/* Blue outline, fills on hover ("Book a Demo" under sections). */
.mateo .mateo-btn--outline {
	background: var(--mateo-white);
	border-color: var(--mateo-blue-bright);
	color: var(--mateo-blue-bright);
}

.mateo .mateo-btn--outline:hover {
	background: var(--mateo-blue-bright);
	color: var(--mateo-white);
}

/* Green (hero CTA). */
.mateo .mateo-btn--green {
	background: var(--mateo-green);
	border-color: var(--mateo-green);
	color: var(--mateo-white);
	padding: 12px 32px 13px;
}

.mateo .mateo-btn--green:hover {
	background: var(--mateo-white);
	border-color: var(--mateo-white);
	color: var(--mateo-green);
}

/* White outline on blue backgrounds. */
.mateo .mateo-btn--ghost {
	background: transparent;
	border-color: var(--mateo-white);
	color: var(--mateo-white);
	padding: 12px 32px 13px;
}

.mateo .mateo-btn--ghost:hover {
	background: var(--mateo-white);
	color: var(--mateo-blue);
}

/* Inputs, chips, pills, badges -------------------------------------------- */

.mateo-input {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 10px 16px;
	border: 1px solid var(--mateo-border);
	border-radius: 9999px;
	background: var(--mateo-white);
	color: var(--mateo-ink);
	font: inherit;
	font-size: 16px;
	transition: border-color .2s;
}

.mateo-input::placeholder {
	color: #8494a4;
}

.mateo-input:focus {
	border-color: var(--mateo-blue-bright);
}

.mateo-input[type="search"] {
	padding-left: 44px;
	background: var(--mateo-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6f7f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px center / 18px;
}

.mateo-input--readonly {
	background: var(--mateo-card);
	border-color: transparent;
	color: var(--mateo-text);
	font-size: 14px;
	text-overflow: ellipsis;
}

.mateo-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 6px 18px;
	border: 1px solid var(--mateo-border);
	border-radius: 9999px;
	background: var(--mateo-white);
	color: var(--mateo-ink);
	font-family: var(--mateo-font);
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s;
}

.mateo-chip:hover {
	border-color: var(--mateo-blue-bright);
	color: var(--mateo-blue-bright);
}

.mateo-chip[aria-pressed="true"] {
	background: var(--mateo-blue-bright);
	border-color: var(--mateo-blue-bright);
	color: var(--mateo-white);
}

/* Multi-select chips get a tick when on. */
.mateo-chip[data-filter="products"][aria-pressed="true"]::before {
	content: "";
	width: 14px;
	height: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

.mateo-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.mateo-pills--stack {
	flex-direction: column;
	align-items: flex-start;
}

.mateo-pill {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 9999px;
	background: var(--mateo-tint);
	color: var(--mateo-blue-dark);
	font-size: 13px;
	line-height: 1.4;
}

.mateo-pill--sm {
	font-size: 12px;
}

.mateo-use-case .mateo-pill {
	background: var(--mateo-white);
}

.mateo-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 9999px;
	background: var(--mateo-white);
	color: var(--mateo-blue-dark);
	font-family: var(--mateo-font-medium);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}

.mateo-badge--accent {
	background: var(--mateo-yellow);
	color: var(--mateo-ink);
	font-size: 13px;
}

/* Hero (matches template-parts/new_hero.php) ------------------------------- */

.mateo-hero {
	padding: 24px;
	border-radius: 0 0 36px 36px;
	background: linear-gradient(180deg, #0065ed 0%, #0245a0 100%);
	color: var(--mateo-white);
}

.mateo-hero__inner {
	display: grid;
	gap: 40px;
	align-items: center;
	padding-top: 32px;
	padding-bottom: 40px;
}

@media (min-width: 1001px) {
	.mateo-hero--image .mateo-hero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 80px;
	}
}

.mateo-hero__breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 24px;
	color: rgba(255, 255, 255, .85);
	font-size: 14px;
}

.mateo-hero__breadcrumb li + li::before {
	content: "/";
	margin-right: 6px;
}

.mateo-hero__breadcrumb a {
	color: var(--mateo-white);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mateo-hero__eyebrow {
	margin-bottom: 8px;
	color: var(--mateo-yellow);
	font-family: var(--mateo-font-bold);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: .15px;
	text-transform: uppercase;
}

.mateo-hero__title {
	max-width: 900px;
	color: var(--mateo-white);
	font-family: var(--mateo-font-medium);
	font-size: 42px;
	font-weight: 500;
	line-height: 1.1;
}

@media (min-width: 1001px) {
	.mateo-hero__title {
		font-size: 64px;
		line-height: 1;
	}
}

.mateo-hero__intro {
	max-width: 700px;
	margin: 24px 0 0;
	color: var(--mateo-white);
	font-size: 20px;
	line-height: 1.25;
}

.mateo-hero__callout {
	display: inline-block;
	max-width: 560px;
	margin-top: 28px;
	padding: 14px 18px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: var(--mateo-radius-sm);
	background: rgba(255, 255, 255, .08);
	color: var(--mateo-white);
	font-size: 15px;
	line-height: 1.5;
}

.mateo-hero__callout p {
	margin: 0;
}

.mateo-hero__callout strong,
.mateo-hero__callout b {
	font-family: var(--mateo-font-bold);
	font-weight: 700;
}

.mateo-hero__callout a {
	color: var(--mateo-white);
	text-decoration: underline;
}

.mateo-hero__media {
	display: none;
}

@media (min-width: 1001px) {
	.mateo-hero__media {
		display: block;
	}
}

.mateo-hero__image {
	width: 100%;
	border-radius: var(--mateo-radius-lg);
}

/* Use case library --------------------------------------------------------- */

.mateo-library {
	padding: 56px 0 90px;
}

.mateo-library__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	margin-bottom: 24px;
}

.mateo-library__count {
	order: 2;
	color: var(--mateo-ink);
	font-size: 24px;
	line-height: 1.2;
}

.mateo-library__search {
	order: 1;
	width: 100%;
}

.mateo-library__search .mateo-label {
	margin-bottom: 8px;
}

@media (min-width: 768px) {
	.mateo-library__count {
		order: 0;
		padding-bottom: 10px;
	}

	.mateo-library__search {
		order: 0;
		width: 380px;
	}
}

/* Filters and share link sit together in one light-blue panel. */
.mateo-library__filters {
	display: grid;
	gap: 20px;
	padding: 24px;
	border-radius: var(--mateo-radius) var(--mateo-radius) 0 0;
	background: var(--mateo-card);
}

.mateo-filter {
	display: grid;
	gap: 10px;
}

.mateo-filter__label {
	color: var(--mateo-ink);
	font-family: var(--mateo-font-medium);
	font-size: 15px;
	font-weight: 500;
}

.mateo-filter__options {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.mateo-filter__hint {
	margin-left: 4px;
	color: var(--mateo-muted);
	font-size: 14px;
}

@media (min-width: 768px) {
	.mateo-filter {
		grid-template-columns: 170px 1fr;
		align-items: start;
	}

	.mateo-filter__label {
		padding-top: 9px;
	}
}

.mateo-library__share {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 8px 12px;
	margin-bottom: 40px;
	padding: 16px 24px 24px;
	border-top: 1px solid var(--mateo-border);
	border-radius: 0 0 var(--mateo-radius) var(--mateo-radius);
	background: var(--mateo-card);
}

.mateo-library__share .mateo-label {
	grid-column: 1 / -1;
}

.mateo-library__share .mateo-input--readonly {
	min-height: 44.5px;
	background: var(--mateo-white);
}

@media (min-width: 768px) {
	.mateo-library__share {
		grid-template-columns: 170px 1fr auto;
		padding-top: 20px;
	}

	.mateo-library__share .mateo-label {
		grid-column: auto;
	}
}

.mateo-library__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 680px) {
	.mateo-library__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.mateo-library__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.mateo-library__empty {
	padding: 56px 24px;
	border-radius: var(--mateo-radius);
	background: var(--mateo-card);
	text-align: center;
}

.mateo-library__empty p {
	margin-bottom: 20px;
	color: var(--mateo-ink);
	font-size: 20px;
}

.mateo-library__more {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

/* Use case card (cardstack-2col card look) --------------------------------- */

.mateo-use-case {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 12px;
	border-radius: var(--mateo-radius);
	background: var(--mateo-card);
	transition: transform .25s ease, box-shadow .25s ease;
}

.mateo-use-case:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(2, 69, 160, .10);
}

.mateo-use-case__media {
	position: relative;
	flex: none;
	width: 100%;
	aspect-ratio: 16 / 7;
	overflow: hidden;
	border-radius: var(--mateo-radius-sm);
	background: linear-gradient(180deg, #0065ed 0%, #0245a0 100%);
}

.mateo-use-case__media .mateo-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
}

.mateo-use-case__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.mateo-use-case__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px 10px 6px;
}

.mateo-use-case__title {
	color: var(--mateo-blue);
	font-family: var(--mateo-font-medium);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
}

.mateo-use-case__summary {
	margin-top: 10px;
	color: var(--mateo-ink);
	font-size: 15px;
	line-height: 1.45;
}

.mateo-use-case .mateo-pills {
	margin-top: auto;
	padding-top: 18px;
}

.mateo .mateo-use-case__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 16px;
	color: var(--mateo-blue-bright);
	font-size: 16px;
	text-decoration: none;
}

.mateo-use-case__link:hover > span:first-child {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mateo-use-case:hover .mateo-arrow {
	transform: translateX(3px);
}

/* Whole card is clickable through the link. */
.mateo-use-case__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--mateo-radius);
}

/* Popup -------------------------------------------------------------------- */

html:has(.mateo-modal[open]) {
	overflow: hidden;
}

.mateo-modal {
	width: min(1080px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: var(--mateo-radius-lg);
	background: var(--mateo-white);
	color: var(--mateo-text);
	box-shadow: 0 24px 64px rgba(2, 30, 70, .3);
	overflow: hidden;
}

.mateo-modal::backdrop {
	background: rgba(2, 45, 105, .55);
}

.mateo-modal[open] {
	display: flex;
	animation: mateo-modal-in .2s ease-out;
}

@keyframes mateo-modal-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mateo-modal[open],
	.mateo-use-case,
	.mateo-arrow {
		animation: none;
		transition: none;
	}
}

.mateo-modal__frame {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-height: inherit;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.mateo-modal__header {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 24px;
	border-bottom: 1px solid var(--mateo-border);
	background: var(--mateo-white);
}

.mateo-modal__url {
	min-width: 0;
	overflow: hidden;
	color: var(--mateo-muted);
	font-size: 14px;
	text-overflow: ellipsis;
	white-space: nowrap;
	user-select: all;
}

.mateo-modal__body {
	padding: 20px;
}

.mateo-modal__grid {
	display: grid;
	gap: 28px;
}

@media (min-width: 900px) {
	.mateo-modal__body {
		padding: 32px;
	}

	.mateo-modal__grid {
		grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
		gap: 40px;
	}
}

.mateo-video {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--mateo-radius);
	background: linear-gradient(180deg, #0065ed 0%, #0245a0 100%);
}

video.mateo-video {
	background: #000;
	object-fit: contain;
}

.mateo-video__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mateo-video__play {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 100%;
	border: 0;
	background: rgba(2, 45, 105, .25);
	color: var(--mateo-white);
	font: inherit;
	font-size: 16px;
	cursor: pointer;
}

.mateo-video__play svg {
	transition: transform .2s;
}

.mateo-video__play:hover svg {
	transform: scale(1.08);
}

.mateo-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.mateo-prompt {
	margin-top: 20px;
	padding: 20px 24px;
	border-radius: var(--mateo-radius);
	background: var(--mateo-card);
}

.mateo-prompt__label {
	margin-bottom: 6px;
	color: var(--mateo-green);
	font-family: var(--mateo-font-bold);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .15px;
	text-transform: uppercase;
}

.mateo-prompt__text {
	color: var(--mateo-ink);
	font-size: 17px;
	line-height: 1.5;
}

.mateo-modal__details .mateo-badge {
	margin-bottom: 14px;
}

.mateo-modal__title {
	color: var(--mateo-ink);
	font-family: var(--mateo-font);
	font-size: clamp(26px, 2.6vw, 34px);
	font-weight: 400;
	line-height: 1.18;
}

.mateo-modal__summary {
	margin-top: 14px;
	color: var(--mateo-text);
	font-size: 16px;
	line-height: 1.6;
}

.mateo-modal__subheading {
	margin: 22px 0 6px;
	color: var(--mateo-blue);
	font-family: var(--mateo-font-medium);
	font-size: 15px;
	font-weight: 500;
}

.mateo-modal__text {
	color: var(--mateo-ink);
	font-size: 15px;
}

.mateo-modal__details .mateo-pills {
	margin-top: 10px;
}

.mateo-modal__actions {
	display: grid;
	gap: 10px;
	margin-top: 28px;
}

/* Resource cards ------------------------------------------------------------ */

.mateo-resources__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 600px) {
	.mateo-resources__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.mateo-resources__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.mateo-resource {
	display: flex;
}

.mateo .mateo-resource__inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 12px 12px 20px;
	border-radius: var(--mateo-radius);
	background: var(--mateo-card);
	color: inherit;
	text-decoration: none;
	transition: transform .25s ease;
}

a.mateo-resource__inner:hover {
	transform: translateY(-2px);
}

.mateo-resource__media {
	flex: none;
	width: 100%;
	aspect-ratio: 4 / 3;
	margin-bottom: 16px;
	overflow: hidden;
	border-radius: var(--mateo-radius-sm);
	background: var(--mateo-tint);
}

.mateo-resource__media.is-dark {
	background: linear-gradient(180deg, #0065ed 0%, #0245a0 100%);
}

.mateo-resource__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mateo-resource__label,
.mateo-resource__title,
.mateo-resource__text {
	padding: 0 8px;
}

.mateo-resource__label {
	color: var(--mateo-green);
	font-family: var(--mateo-font-bold);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .15px;
	text-transform: uppercase;
}

.mateo-resource__title {
	margin-top: 6px;
	color: var(--mateo-blue);
	font-family: var(--mateo-font-medium);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.25;
}

a.mateo-resource__inner:hover .mateo-resource__title {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mateo-resource__text {
	margin-top: 8px;
	color: var(--mateo-ink);
	font-size: 15px;
	line-height: 1.45;
}

/* Webinars ------------------------------------------------------------------ */

.mateo-webinars__columns {
	display: grid;
	gap: 40px;
}

@media (min-width: 960px) {
	.mateo-webinars__columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 48px;
	}
}

.mateo-webinars__list {
	display: grid;
	gap: 12px;
}

.mateo-webinar {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 12px 18px;
	padding: 12px;
	border-radius: var(--mateo-radius);
	background: var(--mateo-card);
}

.mateo-webinar .mateo-btn {
	grid-column: 1 / -1;
	justify-self: start;
}

@media (min-width: 600px) {
	.mateo-webinar {
		grid-template-columns: auto 1fr auto;
		padding-right: 18px;
	}

	.mateo-webinar .mateo-btn {
		grid-column: auto;
	}
}

.mateo-webinar__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: var(--mateo-radius-sm);
	background: linear-gradient(180deg, #0065ed 0%, #0245a0 100%);
	color: var(--mateo-white);
	line-height: 1;
}

.mateo-webinar__day {
	color: var(--mateo-yellow);
	font-family: var(--mateo-font-bold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .15px;
	text-transform: uppercase;
}

.mateo-webinar__dd {
	margin-top: 6px;
	font-family: var(--mateo-font-medium);
	font-size: 28px;
	font-weight: 500;
}

.mateo-webinar__thumb {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 120px;
	height: 72px;
	overflow: hidden;
	border-radius: var(--mateo-radius-sm);
	background: linear-gradient(180deg, #0065ed 0%, #0245a0 100%);
	color: var(--mateo-white);
}

.mateo-webinar__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .75;
}

.mateo-webinar__thumb svg {
	position: relative;
}

.mateo-webinar__title {
	color: var(--mateo-ink);
	font-family: var(--mateo-font-medium);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
}

.mateo-webinar__details {
	margin-top: 4px;
	color: var(--mateo-muted);
	font-size: 14px;
}

/* Feature split -------------------------------------------------------------- */

.mateo-split {
	display: grid;
	gap: 0;
	overflow: hidden;
	border-radius: var(--mateo-radius-lg);
	background: var(--mateo-card);
}

.mateo-split__media {
	min-height: 240px;
	background: var(--mateo-tint);
}

.mateo-split__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mateo-split__content {
	align-self: center;
	padding: 32px 24px 40px;
}

.mateo-split__text {
	margin-top: 20px;
	color: var(--mateo-text);
	font-size: 17px;
	line-height: 1.6;
}

.mateo-split__text p + p {
	margin-top: 12px;
}

.mateo-split__note {
	margin-top: 16px;
	color: var(--mateo-muted);
	font-size: 14px;
}

.mateo-split .mateo-btn {
	margin-top: 28px;
}

@media (min-width: 900px) {
	.mateo-split {
		grid-template-columns: 1fr 1fr;
		min-height: 380px;
	}

	.mateo-split--reverse .mateo-split__media {
		order: 2;
	}

	.mateo-split__content {
		padding: 56px;
	}
}

/* CTA band (same gradient as the hero) --------------------------------- */

.mateo-cta {
	padding: 72px 0;
	background: linear-gradient(180deg, #0065ed 0%, #0245a0 100%);
	color: var(--mateo-white);
}

.mateo-cta__inner {
	display: grid;
	gap: 32px;
	align-items: center;
}

.mateo-cta__title {
	color: var(--mateo-white);
}

.mateo-cta__text {
	max-width: 600px;
	margin-top: 16px;
	color: var(--mateo-white);
	font-size: 18px;
	line-height: 1.55;
}

.mateo-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

@media (min-width: 960px) {
	.mateo-cta {
		padding: 96px 0;
	}

	.mateo-cta__inner {
		grid-template-columns: 1fr auto;
		gap: 64px;
	}
}

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

.mateo-faq__list {
	display: grid;
	gap: 12px;
}

.mateo-faq__item {
	border-radius: var(--mateo-radius);
	background: var(--mateo-card);
	transition: background-color .2s;
}

.mateo-faq__item[open] {
	background: var(--mateo-tint);
}

.mateo-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	color: var(--mateo-ink);
	font-family: var(--mateo-font-medium);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.35;
	cursor: pointer;
	list-style: none;
}

.mateo-faq__question::-webkit-details-marker {
	display: none;
}

/* Plus that turns into a minus. */
.mateo-faq__question::after {
	content: "";
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background:
		linear-gradient(var(--mateo-white), var(--mateo-white)) center / 12px 2px no-repeat,
		linear-gradient(var(--mateo-white), var(--mateo-white)) center / 2px 12px no-repeat,
		var(--mateo-blue-bright);
	transition: transform .2s;
}

.mateo-faq__item[open] > .mateo-faq__question::after {
	background:
		linear-gradient(var(--mateo-white), var(--mateo-white)) center / 12px 2px no-repeat,
		var(--mateo-blue-bright);
}

.mateo-faq__answer {
	padding: 0 24px 22px;
	color: var(--mateo-text);
	font-size: 16px;
	line-height: 1.6;
}

.mateo-faq__answer > * + * {
	margin-top: 12px;
}

.mateo-faq__answer a {
	color: var(--mateo-blue-bright);
	text-decoration: underline;
}

.mateo-faq__answer ul {
	padding-left: 20px;
	list-style: disc;
}

/* Password form (page-mateo.php) ---------------------------------------------- */

.mateo .post-password-form input[type="password"] {
	min-height: 44px;
	margin: 8px 8px 0 0;
	padding: 8px 16px;
	border: 1px solid var(--mateo-border);
	border-radius: 9999px;
}

.mateo .post-password-form input[type="submit"] {
	min-height: 44px;
	padding: 6px 28px;
	border: 0;
	border-radius: 9999px;
	background: var(--mateo-blue-bright);
	color: var(--mateo-white);
	cursor: pointer;
}

/* Multi-select dropdowns (Organization type, Persona) ------------------------ */

.mateo-library__selects {
	display: grid;
	gap: 16px;
}

@media (min-width: 768px) {
	.mateo-library__selects {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
}

.mateo-filter--select {
	display: block;
}

.mateo-filter--select .mateo-filter__label {
	margin-bottom: 8px;
	padding-top: 0;
}

.mateo-select {
	position: relative;
}

.mateo-select__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 48px;
	padding: 10px 14px 10px 18px;
	border: 1px solid var(--mateo-border);
	border-radius: var(--mateo-radius-sm);
	background: var(--mateo-white);
	color: var(--mateo-muted);
	font: inherit;
	font-size: 16px;
	text-align: left;
	cursor: pointer;
	transition: border-color .2s;
}

.mateo-select__toggle:hover,
.mateo-select.is-open .mateo-select__toggle {
	border-color: var(--mateo-blue-bright);
}

.mateo-select.has-value .mateo-select__toggle {
	color: var(--mateo-ink);
}

.mateo-select__summary {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mateo-select__chevron {
	flex: none;
	color: var(--mateo-blue-bright);
	transition: transform .2s;
}

.mateo-select.is-open .mateo-select__chevron {
	transform: rotate(180deg);
}

.mateo-select__panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 20;
	overflow: hidden;
	border: 1px solid var(--mateo-border);
	border-radius: var(--mateo-radius-sm);
	background: var(--mateo-white);
	box-shadow: 0 12px 32px rgba(2, 45, 105, .14);
}

.mateo-select__list {
	max-height: 320px;
	overflow-y: auto;
	padding: 6px;
	overscroll-behavior: contain;
}

.mateo-select__option label {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--mateo-ink);
	font-size: 15px;
	line-height: 1.3;
	cursor: pointer;
}

.mateo-select__option label:hover {
	background: var(--mateo-card);
}

/* Visually hidden native checkbox, custom box next to it. */
.mateo-select__option input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.mateo-select__check {
	flex: none;
	width: 20px;
	height: 20px;
	border: 2px solid var(--mateo-blue-bright);
	border-radius: 4px;
	background: var(--mateo-white);
	transition: background-color .15s;
}

.mateo-select__option input:checked + .mateo-select__check {
	background: var(--mateo-blue-bright) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 14px;
}

.mateo-select__option input:focus-visible + .mateo-select__check {
	box-shadow: var(--mateo-focus);
}

.mateo-select__none {
	padding: 14px 18px;
	color: var(--mateo-muted);
	font-size: 14px;
}

.mateo-select__footer {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 12px;
	border-top: 1px solid var(--mateo-border);
	background: var(--mateo-card);
}

.mateo-select__clear,
.mateo-select__done {
	padding: 6px 10px;
	border: 0;
	border-radius: 9999px;
	background: none;
	color: var(--mateo-blue-bright);
	font: inherit;
	font-size: 15px;
	cursor: pointer;
}

.mateo-select__done {
	padding: 6px 18px;
	background: var(--mateo-blue-bright);
	color: var(--mateo-white);
}

.mateo-select__clear:hover {
	text-decoration: underline;
}

.mateo-select__done:hover {
	background: var(--mateo-blue-dark);
}


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

@media (max-width: 599px) {
	.mateo {
		--mateo-gutter: 20px;
	}

	/* The container already supplies the side gutter. */
	.mateo-hero {
		padding: 16px 0;
		border-radius: 0 0 24px 24px;
	}

	.mateo-hero__intro {
		font-size: 18px;
	}

	.mateo-chip {
		min-height: 36px;
		padding: 5px 14px;
		font-size: 14px;
	}

	.mateo-library__filters {
		padding: 20px 16px;
	}

	.mateo-library__share {
		grid-template-columns: 1fr;
		padding: 16px;
	}

	.mateo-library__share .mateo-btn {
		width: 100%;
	}

	.mateo-modal__header {
		padding: 12px 16px;
	}

	.mateo-modal__body {
		padding: 16px;
	}

	.mateo-split__content {
		padding: 28px 20px 32px;
	}
}
