/* SNP Service Accordion Widget */
.snp-svc {
	width: 100%;
}

/* Contained card */
.snp-svc-card {
	border-top: 1px solid rgba(26, 26, 26, 0.1);
	border-bottom: 1px solid rgba(26, 26, 26, 0.1);
	max-width: 1100px;
	margin: 0 auto;
	background: #FFFFFF;
}

.snp-svc-row {
	border-bottom: 1px solid rgba(26, 26, 26, 0.1);
	overflow: hidden;
}

.snp-svc-row:last-child {
	border-bottom: none;
}

/* Row header */
.snp-svc-row-head {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 26px 36px;
	cursor: pointer;
	position: relative;
	transition: background 0.3s ease, padding 0.3s ease;
	min-height: 80px;
}

.snp-svc-row-head:hover {
	background: rgba(26, 26, 26, 0.02);
}

.snp-svc-row.open .snp-svc-row-head {
	background: rgba(26, 26, 26, 0.015);
	padding-bottom: 20px;
}

.snp-svc-row-num {
	font-family: "Andale Mono", monospace;
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #C5C0BA;
	flex-shrink: 0;
	width: 28px;
	transition: color 0.3s ease;
}

.snp-svc-row.open .snp-svc-row-num {
	color: #8A8680;
}

.snp-svc-row-title {
	flex: 1;
	font-family: "Editor's Note", Georgia, serif;
	font-size: clamp(17px, 1.9vw, 23px);
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: #1A1A1A;
	transition: opacity 0.3s ease;
}

.snp-svc-row:not(.open) .snp-svc-row-title {
	opacity: 0.7;
}

.snp-svc-row.open .snp-svc-row-title {
	opacity: 1;
}

/* Right meta */
.snp-svc-row-meta {
	flex-shrink: 0;
	position: relative;
	text-align: right;
	padding-right: 4px;
	min-width: 100px;
}

.snp-svc-meta-name {
	font-family: "Andale Mono", monospace;
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8A8680;
	display: block;
	position: relative;
	z-index: 2;
}

.snp-svc-bg-num {
	font-family: "Editor's Note", Georgia, serif;
	font-size: 80px;
	font-weight: 400;
	color: #1A1A1A;
	opacity: 0.05;
	position: absolute;
	right: -6px;
	top: 50%;
	transform: translateY(-50%);
	line-height: 1;
	letter-spacing: -0.04em;
	pointer-events: none;
	user-select: none;
	z-index: 1;
	transition: opacity 0.3s ease;
}

.snp-svc-row.open .snp-svc-bg-num {
	opacity: 0.08;
}

/* Toggle */
.snp-svc-toggle {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 22px;
	color: #C5C0BA;
	flex-shrink: 0;
	margin-left: 8px;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
	line-height: 1;
}

.snp-svc-row.open .snp-svc-toggle {
	transform: rotate(45deg);
	color: #1A1A1A;
}

/* Expand body -- grid technique for natural height */
.snp-svc-body-wrap {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.snp-svc-row.open .snp-svc-body-wrap {
	grid-template-rows: 1fr;
}

.snp-svc-body-inner {
	overflow: hidden;
	padding: 0 36px;
	border-top: 1px solid transparent;
	background: #FFFFFF;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s, padding 0.45s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.snp-svc-row.open .snp-svc-body-inner {
	padding: 36px 36px 48px;
	border-top-color: rgba(26, 26, 26, 0.1);
	opacity: 1;
	transform: translateY(0);
}

/* Sub-headline */
.snp-svc-sub-headline {
	font-family: "Editor's Note", Georgia, serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: -0.005em;
	color: #4A4845;
	margin-bottom: 10px;
}

.snp-svc-sub-headline em {
	font-style: italic;
}

.snp-svc-desc {
	font-family: "Editor's Note Text", Georgia, serif;
	font-size: 15px;
	line-height: 1.75;
	color: #4A4845;
	margin-bottom: 32px;
	max-width: 640px;
}

.snp-svc-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

.snp-svc-outcomes-lbl,
.snp-svc-chips-lbl {
	font-family: "Andale Mono", monospace;
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8A8680;
	margin-bottom: 12px;
}

.snp-svc-outcomes {
	list-style: none;
	margin-bottom: 28px;
	padding: 0;
}

.snp-svc-outcome {
	font-family: "Editor's Note Text", Georgia, serif;
	font-size: 14px;
	font-weight: 700;
	color: #1A1A1A;
	padding: 11px 0;
	border-bottom: 1px solid rgba(26, 26, 26, 0.08);
	line-height: 1.35;
}

.snp-svc-outcome:first-child {
	border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.snp-svc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.snp-svc-chip {
	font-family: "Andale Mono", monospace;
	font-size: 9px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #4A4845;
	border: 1px solid rgba(26, 26, 26, 0.12);
	padding: 4px 10px;
	background: #F4F0EB;
}

/* =============================================
   GRID / TAB LAYOUT
   ============================================= */

.snp-svc-grid-wrap {
	max-width: 1100px;
	margin: 0 auto;
}

.snp-svc-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1px;
	background: rgba(26, 26, 26, 0.06);
	border: 1px solid rgba(26, 26, 26, 0.06);
	border-radius: 4px;
	overflow: hidden;
}

.snp-svc-grid-card {
	background: #F4F0EB;
	padding: 32px 24px;
	cursor: pointer;
	transition: all 0.5s ease;
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 200px;
}

.snp-svc-grid-card:hover {
	background: rgba(255, 255, 255, 0.5);
}

.snp-svc-grid-card.active {
	background: #FFFFFF;
}

.snp-svc-grid-card-num {
	font-family: "Andale Mono", monospace;
	font-size: 10px;
	letter-spacing: 0.1em;
	color: #C5C0BA;
	margin-bottom: auto;
	transition: color 0.4s ease;
}

.snp-svc-grid-card.active .snp-svc-grid-card-num {
	color: #1A1A1A;
}

.snp-svc-grid-card-label {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #C5C0BA;
	margin-bottom: 10px;
	transition: color 0.4s ease;
}

.snp-svc-grid-card.active .snp-svc-grid-card-label {
	color: #8A8680;
}

.snp-svc-grid-card-title {
	font-family: "Editor's Note", Georgia, serif;
	font-size: clamp(14px, 1.3vw, 17px);
	font-weight: 400;
	line-height: 1.35;
	color: #4A4845;
	transition: color 0.4s ease, font-weight 0.4s ease;
}

.snp-svc-grid-card.active .snp-svc-grid-card-title {
	color: #1A1A1A;
	font-weight: 700;
}

/* Active indicator arrow */
.snp-svc-grid-arrow {
	width: 12px;
	height: 12px;
	position: absolute;
	bottom: -7px;
	left: 50%;
	transform: translateX(-50%) rotate(45deg);
	background: #FFFFFF;
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 3;
}

.snp-svc-grid-card.active .snp-svc-grid-arrow {
	opacity: 1;
}

/* Detail panel below grid */
.snp-svc-detail-wrap {
	overflow: hidden;
	transition: max-height 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
	max-height: 0;
}

.snp-svc-detail-wrap.open {
	max-height: 600px;
}

.snp-svc-detail {
	background: #FFFFFF;
	border-radius: 0 0 4px 4px;
	padding: 56px;
	position: relative;
	overflow: hidden;
	display: none;
}

.snp-svc-detail.active {
	display: block;
}

.snp-svc-detail-bg {
	position: absolute;
	right: 48px;
	top: 24px;
	font-family: "Editor's Note", Georgia, serif;
	font-size: 180px;
	font-weight: 400;
	color: #1A1A1A;
	opacity: 0.025;
	line-height: 1;
	letter-spacing: -0.04em;
	pointer-events: none;
	user-select: none;
}

.snp-svc-detail-close {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(26, 26, 26, 0.1);
	background: none;
	cursor: pointer;
	font-size: 16px;
	color: #4A4845;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.snp-svc-detail-close:hover {
	background: #1A1A1A;
	color: #FFFFFF;
	border-color: #1A1A1A;
}

.snp-svc-detail-title {
	font-family: "Editor's Note", Georgia, serif;
	font-size: clamp(24px, 2.8vw, 36px);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #1A1A1A;
	margin-bottom: 12px;
	max-width: 700px;
}

.snp-svc-detail-sub {
	font-family: "Editor's Note", Georgia, serif;
	font-size: 16px;
	line-height: 1.6;
	color: #4A4845;
	font-style: italic;
	margin-bottom: 20px;
	max-width: 600px;
}

.snp-svc-detail-desc {
	font-family: "Editor's Note Text", Georgia, serif;
	font-size: 15px;
	line-height: 1.75;
	color: #4A4845;
	max-width: 700px;
	margin-bottom: 36px;
}

.snp-svc-detail-outcome {
	font-family: "Editor's Note Text", Georgia, serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: #1A1A1A;
	padding: 12px 0;
	border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.snp-svc-detail-outcome:last-child {
	border-bottom: none;
}

/* Responsive - Accordion */
@media (max-width: 900px) {
	.snp-svc-card {
		margin: 0;
	}

	.snp-svc-row-head {
		padding: 20px 16px;
		min-height: auto;
		gap: 12px;
	}

	.snp-svc-row.open .snp-svc-row-head {
		padding-bottom: 14px;
	}

	.snp-svc-row-title {
		font-size: 16px;
	}

	.snp-svc-row-meta {
		display: none;
	}

	.snp-svc-bg-num {
		font-size: 56px;
	}

	.snp-svc-body-inner {
		padding: 0 16px;
	}

	.snp-svc-row.open .snp-svc-body-inner {
		padding: 20px 16px 32px;
	}

	.snp-svc-row.open .snp-svc-body-wrap {
		max-height: none !important;
	}

	.snp-svc-two-col {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.snp-svc-desc {
		font-size: 14px;
		margin-bottom: 24px;
	}

	.snp-svc-sub-headline {
		font-size: 15px;
	}
}

/* Responsive - Grid */
@media (max-width: 900px) {
	.snp-svc-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.snp-svc-detail {
		padding: 32px 24px;
	}

	.snp-svc-detail .snp-svc-two-col {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

@media (max-width: 600px) {
	.snp-svc-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.snp-svc-grid-card {
		min-height: 160px;
		padding: 24px 16px;
	}
}
