/*
 * Our Partners (page-our-partners.php) — 2026-10.
 *
 * Enqueued by inc/cm-pages.php on pages using the "Our Partners" template.
 * cosmick-2026.css and cm-interior.css are hard-coded <link>s printed AFTER
 * this file, so every rule that overlaps theirs wins on SPECIFICITY (scoped
 * under main.cm-pt), never on order and never with !important.
 *
 * Badges are the partners' own artwork (Google's may not be altered), so they
 * always sit on a white/paper ground and are never filtered or recoloured.
 */

main.cm-pt > section { overflow-x: clip; overflow-y: visible; }

main.cm-pt .cm-pt-partner { scroll-margin-top: calc(var(--cm26-header-h) + 20px); }
main.cm-pt #cm-pt-list { scroll-margin-top: calc(var(--cm26-header-h) + 8px); }

/* ---------------------------------------------------------------------------
   1. Page head — sand band, coral wedge, badge wall aside.
   --------------------------------------------------------------------------- */

main.cm-pt .cm-page-head {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	border-bottom: 0;
	background: var(--cm26-sand);
}

main.cm-pt .cm-page-head::before {
	content: "";
	position: absolute;
	inset: 0 0 0 64%;
	z-index: -1;
	background: var(--cm26-brand);
	clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
	opacity: .92;
	pointer-events: none;
}

main.cm-pt .cm-page-head::after { display: none; }
main.cm-pt .cm-page-head > .cm-orbital { display: none; }

main.cm-pt .cm-page-head > .cm-wrap {
	position: relative;
	padding-block: clamp(36px, 5.4vw, 84px);
}

main.cm-pt .cm-page-head h1 {
	max-width: 15ch;
	font-size: clamp(36px, 4.4vw, 62px);
}

main.cm-pt .cm-page-head .cm-lede { max-width: 50ch; }
main.cm-pt .cm-page-head .cm-eyebrow { color: var(--cm26-brand-deep); }
main.cm-pt .cm-page-head .cm-crumbs ol { color: var(--cm26-body); }
main.cm-pt .cm-page-head-actions .cm-btn-secondary { background: var(--cm26-card); }

/* The badge wall: a paper card with the four badges, two by two. */
main.cm-pt .cm-pt-wall {
	position: relative;
	padding: 20px;
	border: 1px solid var(--cm26-line);
	border-radius: 14px;
	background: var(--cm26-card);
	box-shadow: 10px 10px 0 rgba(41, 39, 37, .08), 0 30px 60px -36px rgba(41, 39, 37, .45);
}

main.cm-pt .cm-pt-wall-head {
	display: flex;
	justify-content: space-between;
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--cm26-line);
	font-family: var(--cm26-font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--cm26-ink);
}

main.cm-pt .cm-pt-wall-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

main.cm-pt .cm-pt-wall-tile {
	display: grid;
	grid-template-rows: 1fr auto;
	place-items: center;
	gap: 10px;
	height: 100%;
	min-height: 124px;
	padding: 16px 12px 12px;
	border: 1px solid var(--cm26-line);
	border-radius: 10px;
	background: #fff;
	text-decoration: none;
	transition: border-color .2s var(--cm26-ease), transform .2s var(--cm26-ease);
}

main.cm-pt .cm-pt-wall-tile:hover,
main.cm-pt .cm-pt-wall-tile:focus-visible {
	border-color: var(--cm26-brand);
	transform: translateY(-2px);
}

main.cm-pt .cm-pt-wall-badge {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 44px;
}

main.cm-pt .cm-pt-wall-tile--google .cm-pt-wall-badge { max-height: 64px; }

main.cm-pt .cm-pt-wall-name {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	color: var(--cm26-stone);
}

@media (max-width: 767px) {
	main.cm-pt .cm-page-head::before { inset: 0 0 0 82%; opacity: .55; }
	main.cm-pt .cm-page-head-actions .cm-btn { flex: 1 1 100%; }
	main.cm-pt .cm-pt-wall { padding: 14px; box-shadow: 6px 6px 0 rgba(41, 39, 37, .08); }
	main.cm-pt .cm-pt-wall-tile { min-height: 108px; }
}

/* ---------------------------------------------------------------------------
   2. At a glance — four facts on a parchment strip.
   --------------------------------------------------------------------------- */

main.cm-pt .cm-pt-facts {
	border-block: 1px solid var(--cm26-line);
	background: var(--studio-panel, #efe6dd);
}

main.cm-pt .cm-pt-facts-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-block: 0;
	padding-block: 30px;
}

main.cm-pt .cm-pt-fact { padding-inline: 22px; border-left: 1px solid var(--cm26-line); }
main.cm-pt .cm-pt-fact:first-child { padding-left: 0; border-left: 0; }
main.cm-pt .cm-pt-fact dd { margin: 0; }

main.cm-pt .cm-pt-fact-value {
	display: block;
	font-family: var(--cm26-font-display);
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.03em;
	color: #a13228;
}

main.cm-pt .cm-pt-fact-label {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--cm26-body);
}

@media (max-width: 767.98px) {
	/* The section's own grid rules out-rank .cm-rail; restate the rail. */
	main.cm-pt .cm-pt-facts-grid.cm-rail { --cm-rail-w: 54%; --cm-rail-gap: 0px; display: flex; padding-block: 24px 6px; }
	main.cm-pt .cm-pt-facts .cm-rail-ui { padding-bottom: 18px; }
}

/* ---------------------------------------------------------------------------
   3. The partners — jump links, then one plate + body per partner.
   --------------------------------------------------------------------------- */

main.cm-pt .cm-pt-jump ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 clamp(28px, 4vw, 48px);
	padding: 0;
	list-style: none;
}

main.cm-pt .cm-pt-jump a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--cm26-input-border);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--cm26-ink);
	text-decoration: none;
	transition: background-color .18s var(--cm26-ease), border-color .18s var(--cm26-ease);
}

main.cm-pt .cm-pt-jump a:hover { border-color: var(--cm26-brand-ink); background: var(--cm26-sand); }

main.cm-pt .cm-pt-partners { display: grid; gap: clamp(20px, 3vw, 32px); }

main.cm-pt .cm-pt-partner {
	display: grid;
	gap: clamp(24px, 4vw, 56px);
	padding: clamp(22px, 3.4vw, 44px);
	border: 1px solid var(--cm26-line);
	border-radius: var(--cm26-radius-card, 14px);
	background: var(--cm26-card);
}

@media (min-width: 900px) {
	main.cm-pt .cm-pt-partner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
	/* Alternate the plate side so four long sections do not read as a list. */
	main.cm-pt .cm-pt-partner:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	main.cm-pt .cm-pt-partner:nth-child(even) .cm-pt-plate { order: 2; }
}

/* The plate: badge on white with a coral offset shadow, then the facts. */
main.cm-pt .cm-pt-plate { position: relative; min-width: 0; }

main.cm-pt .cm-pt-plate-num {
	position: absolute;
	top: -10px;
	left: -10px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--cm26-ink);
	font-family: var(--cm26-font-display);
	font-size: 12px;
	font-weight: 700;
	color: var(--cm26-paper);
}

main.cm-pt .cm-pt-plate-badge {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	padding: 10%;
	border: 1px solid var(--cm26-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 8px 8px 0 var(--cm26-brand);
}

main.cm-pt .cm-pt-badge {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 96px;
}

main.cm-pt .cm-pt-plate-badge--google .cm-pt-badge { max-height: 150px; }

main.cm-pt .cm-pt-plate-meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 26px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--cm26-line);
}

main.cm-pt .cm-pt-plate-meta dt {
	font-family: var(--cm26-font-display);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--cm26-stone);
}

main.cm-pt .cm-pt-plate-meta dd {
	margin: 4px 0 0;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--cm26-ink);
}

main.cm-pt .cm-pt-plate-links {
	display: grid;
	gap: 2px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

main.cm-pt .cm-pt-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--cm26-brand-ink);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 5px;
	transition: text-decoration-color .18s var(--cm26-ease);
}

main.cm-pt .cm-pt-link:hover,
main.cm-pt .cm-pt-link:focus-visible { text-decoration-color: currentColor; }

/* The body. */
main.cm-pt .cm-pt-body { min-width: 0; }

main.cm-pt .cm-pt-kicker {
	margin: 0 0 10px;
	font-family: var(--cm26-font-display);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--cm26-brand-ink);
}

main.cm-pt .cm-pt-title {
	margin: 0;
	padding: 0;
	max-width: 20ch;
	font-family: var(--cm26-font-display);
	font-size: clamp(26px, 2.8vw, 40px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.035em;
	color: var(--cm26-ink);
}

main.cm-pt .cm-pt-summary {
	max-width: 60ch;
	margin: 16px 0 0;
	font-size: 17px;
	line-height: 1.65;
	color: var(--cm26-body);
}

main.cm-pt .cm-pt-sub {
	margin: 28px 0 12px;
	padding: 0;
	font-family: var(--cm26-font-display);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--cm26-ink);
}

main.cm-pt .cm-pt-points {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	main.cm-pt .cm-pt-points { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}

main.cm-pt .cm-pt-points li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 15.5px;
	line-height: 1.5;
	color: var(--cm26-body);
}

main.cm-pt .cm-pt-points .cm-pt-glyph {
	flex: 0 0 auto;
	margin-top: 2px;
	padding: 3px;
	border-radius: 50%;
	background: var(--cm26-sand);
	color: var(--cm26-brand-ink);
	box-sizing: content-box;
}

main.cm-pt .cm-pt-services {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 22px;
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid var(--cm26-line);
}

main.cm-pt .cm-pt-services-label {
	font-family: var(--cm26-font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--cm26-stone);
}

main.cm-pt .cm-pt-services ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 767px) {
	main.cm-pt .cm-pt-plate-badge { aspect-ratio: 16 / 9; box-shadow: 6px 6px 0 var(--cm26-brand); }
	main.cm-pt .cm-pt-badge { max-height: 72px; }
	main.cm-pt .cm-pt-plate-badge--google .cm-pt-badge { max-height: 110px; }
	main.cm-pt .cm-pt-summary { font-size: 16px; }
}

/* ---------------------------------------------------------------------------
   4. How they fit together — three stage cards on the dark band.
   --------------------------------------------------------------------------- */

main.cm-pt .cm-pt-stack .cm-section-head .cm-eyebrow { color: var(--cm26-dark-primary, #ff9b91); }

main.cm-pt .cm-pt-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

main.cm-pt .cm-pt-step {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 28px 26px 26px;
	border: 1px solid rgba(251, 248, 245, .14);
	border-radius: 12px;
	background: rgba(251, 248, 245, .04);
}

/* Coral cap, the design's card accent. */
main.cm-pt .cm-pt-step::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 26px;
	width: 44px;
	height: 3px;
	background: var(--cm26-brand);
}

main.cm-pt .cm-pt-step-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

main.cm-pt .cm-pt-step-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 10px;
	background: rgba(255, 103, 91, .14);
	color: #ff9b91;
}

main.cm-pt .cm-pt-step-num {
	font-family: var(--cm26-font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--cm26-dark-muted, #bdb3aa);
}

main.cm-pt .cm-pt-step-title {
	margin: 22px 0 0;
	padding: 0;
	font-family: var(--cm26-font-display);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--cm26-paper);
}

main.cm-pt .cm-pt-step-copy {
	margin: 10px 0 0;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--cm26-dark-secondary, #cfc6be);
}

main.cm-pt .cm-pt-step-with {
	margin: auto 0 0;
	padding-top: 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--cm26-dark-muted, #bdb3aa);
}

main.cm-pt .cm-pt-step-with a { color: #ff9b91; text-underline-offset: 4px; }
main.cm-pt .cm-pt-step-with a:hover { color: #ffb4ac; }

@media (max-width: 767.98px) {
	main.cm-pt .cm-pt-steps.cm-rail {
		--cm-rail-w: 84%;
		display: flex;
		gap: 14px;
		margin-inline: calc(-1 * var(--cm26-gutter));
		padding: 4px var(--cm26-gutter) 10px;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	main.cm-pt .cm-pt-steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	main.cm-pt .cm-pt-wall-tile,
	main.cm-pt .cm-pt-jump a,
	main.cm-pt .cm-pt-link { transition: none; }
	main.cm-pt .cm-pt-wall-tile:hover,
	main.cm-pt .cm-pt-wall-tile:focus-visible { transform: none; }
}
