/**
 * All Services overview page only (refinement, owner brief 2026-11-17). Loaded after services.css.
 * The representative cross-system architecture, the unnumbered service list and the scope note.
 * Uses new class names so the service detail pages, which share .ss-arch__node and
 * .ss-terms-panel, are unaffected.
 */

/* Hero service list: unnumbered (the modifier exists in services.css); it is a <ul> here. */
.ss-svc-index ul { list-style: none; margin: 0.9rem 0 0; padding: 0; }

/* ---------- Representative architecture ---------- */

.ss-xarch__figure { margin: 2.25rem 0 0; position: relative; }

.ss-xarch__map {
	display: grid;
	gap: 0 1rem;
	grid-template-areas:
		"gov crm rev wf mon"
		"gov f1 f1 f1 mon"
		"gov int int int mon"
		"gov f2 f2 f2 mon"
		"gov out out out mon";
	grid-template-columns: minmax(0, 12.5rem) repeat(3, minmax(0, 1fr)) minmax(0, 12.5rem);
}
.ss-xarch__layer--crm { grid-area: crm; }
.ss-xarch__layer--revenue { grid-area: rev; }
.ss-xarch__layer--workflows { grid-area: wf; }
.ss-xarch__flow--both { grid-area: f1; }
.ss-xarch__layer--integration { grid-area: int; }
.ss-xarch__flow--down { grid-area: f2; }
.ss-xarch__layer--outcomes { grid-area: out; }
.ss-xarch__layer--governance { grid-area: gov; }
.ss-xarch__layer--monitoring { grid-area: mon; }

.ss-xarch__layer {
	background: #fff;
	border: 1px solid #e6e0f7;
	border-radius: 14px;
	box-shadow: 0 18px 32px -26px rgba(60, 30, 150, 0.4);
	min-width: 0;
	padding: 1rem 1.1rem 1.05rem;
}
.ss-xarch__layer h3 {
	align-items: center;
	color: var(--ss-svc-navy, #10153a);
	display: flex;
	font-size: 1.02rem;
	font-weight: 800;
	gap: 0.55rem;
	letter-spacing: -0.01em;
	line-height: 1.25;
	margin: 0 0 0.7rem;
}
.ss-xarch__items { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.ss-xarch__items li {
	background: #f6f3ff;
	border: 1px solid #e6e0f7;
	border-radius: 999px;
	color: #2f3458;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 0.28rem 0.65rem;
}

/* The connecting layer: emphasized, with the brand gradient edge. */
.ss-xarch__layer--integration {
	background: linear-gradient(#fff, #fff) padding-box, linear-gradient(100deg, #8a2cf0, #19b5ec) border-box;
	border: 2px solid transparent;
	text-align: center;
}
.ss-xarch__layer--integration h3,
.ss-xarch__layer--integration .ss-xarch__items { justify-content: center; }

/* Outcomes: what the architecture is for. */
.ss-xarch__layer--outcomes { background: linear-gradient(160deg, #f8f5ff 0%, #effafd 100%); text-align: center; }
.ss-xarch__layer--outcomes h3,
.ss-xarch__layer--outcomes .ss-xarch__items { justify-content: center; }
.ss-xarch__layer--outcomes .ss-xarch__items li { background: #fff; color: var(--ss-svc-navy, #10153a); }

/* Rails: governance and monitoring span every layer. */
.ss-xarch__layer--governance,
.ss-xarch__layer--monitoring {
	background: linear-gradient(180deg, #f7f3ff 0%, #f2f9fd 100%);
	border: 1.5px dashed #bfaef0;
	box-shadow: none;
	display: flex;
	flex-direction: column;
}
.ss-xarch__layer--monitoring { border-color: #8fd3ee; }
.ss-xarch__layer--governance .ss-xarch__items,
.ss-xarch__layer--monitoring .ss-xarch__items { flex-direction: column; }
.ss-xarch__layer--governance .ss-xarch__items li,
.ss-xarch__layer--monitoring .ss-xarch__items li { background: #fff; }
.ss-xarch__span {
	color: #5a3fb8;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	margin: 0 0 0.5rem;
	text-transform: uppercase;
}
.ss-xarch__layer--monitoring .ss-xarch__span { color: #0b6f93; }
.ss-xarch__layer--governance .ss-xarch__span::before { content: "\2194\00a0"; }
.ss-xarch__layer--monitoring .ss-xarch__span::before { content: "\2194\00a0"; }

/* Directional connectors: two-way between systems and the integration layer, one-way to outcomes. */
.ss-xarch__flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 2.6rem; }
.ss-xarch__flow--down { grid-template-columns: 1fr; height: 2.2rem; }
.ss-xarch__flow span { position: relative; }
.ss-xarch__flow span::before {
	background: linear-gradient(180deg, #8a2cf0, #19b5ec);
	bottom: 7px;
	content: "";
	left: calc(50% - 1px);
	position: absolute;
	top: 7px;
	width: 2px;
}
.ss-xarch__flow span::after {
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 8px solid #19b5ec;
	bottom: 0;
	content: "";
	left: calc(50% - 6px);
	position: absolute;
}
/* Two-way: an upward arrowhead at the top as well. */
.ss-xarch__flow--both span {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M6 0 12 8H0z' fill='%238a2cf0'/%3E%3C/svg%3E") no-repeat center top / 12px 8px;
}

.ss-xarch__caption {
	color: #4a4f72;
	font-size: 0.85rem;
	line-height: 1.5;
	margin: 1rem 0 0;
	max-width: 52rem;
}

/* ---------- Engagement process ---------- */

.ss-roadmap__note { color: #4a4f72; font-size: 0.86rem; line-height: 1.5; margin: 0.9rem 0 0; text-align: center; }

/* ---------- Scope section ---------- */

.ss-terms-panel__intro { color: #2f3458; font-size: 0.86rem; line-height: 1.45; margin: 0 0 0.6rem; }
.ss-terms-panel .ss-checklist strong { color: var(--ss-svc-navy, #10153a); font-weight: 700; }
.ss-terms-note {
	color: #3f4466;
	font-size: 0.86rem;
	line-height: 1.5;
	margin: 1rem 0 0;
	text-align: center;
}

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

@media (max-width: 1023px) {
	/* Governance above and monitoring below frame the stack: they still apply to every layer. */
	.ss-xarch__map {
		grid-template-areas:
			"gov gov gov"
			"crm rev wf"
			"f1 f1 f1"
			"int int int"
			"f2 f2 f2"
			"out out out"
			"mon mon mon";
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: 0;
	}
	.ss-xarch__layer--governance { margin-bottom: 1rem; }
	.ss-xarch__layer--monitoring { margin-top: 1rem; }
	.ss-xarch__layer--governance .ss-xarch__items,
	.ss-xarch__layer--monitoring .ss-xarch__items { flex-direction: row; }
}

@media (max-width: 767px) {
	.ss-xarch__map {
		grid-template-areas: "gov" "crm" "rev" "wf" "f1" "int" "f2" "out" "mon";
		grid-template-columns: minmax(0, 1fr);
		row-gap: 0.75rem;
	}
	.ss-xarch__layer--governance { margin-bottom: 0.25rem; }
	.ss-xarch__layer--monitoring { margin-top: 0.25rem; }
	.ss-xarch__flow--both { grid-template-columns: 1fr; }
	.ss-xarch__flow--both span:nth-child(n+2) { display: none; }
	.ss-xarch__flow,
	.ss-xarch__flow--down { height: 2rem; margin-block: -0.5rem; }
	.ss-terms-note,
	.ss-roadmap__note { text-align: left; }
}

@media (forced-colors: active) {
	.ss-xarch__flow span::before { background: CanvasText; }
	.ss-xarch__flow span::after { border-top-color: CanvasText; }
}
