/* ============================================================
   SCI Age Decade Tabs Widget
   ============================================================ */

.sci-age-tabs {
	display: flex;
	align-items: stretch;
	min-height: 500px;
	overflow: hidden;
}

/* ── Sidebar ── */
.sci-age-tabs__sidebar {
	width: 170px;
	flex-shrink: 0;
	background: #f5f5f5;
	display: flex;
	flex-direction: column;
}

.sci-age-tab-btn {
	display: block;
	width: 100%;
	padding: 22px 16px;
	background: transparent;
	border: none !important;
	border-radius: 0 !important;
	text-align: left;
	font-size: 22px;
	font-weight: 700;
	color: #555;
	cursor: pointer;
	transition: background .15s, color .15s;
	box-shadow: none !important;
	outline: none;
	line-height: 1;
}
.sci-age-tab-btn:hover {
	background: rgba(255,255,255,.5);
	color: #111;
}
.sci-age-tab-btn.active {
	background: #fff;
	color: #111;
}

/* ── Panels ── */
.sci-age-tabs__panels {
	flex: 1;
	position: relative;
	overflow: hidden;
}

.sci-age-panel {
	display: none;
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center right;
	background-repeat: no-repeat;
	min-height: 600px;
}
.sci-age-panel.active {
	display: block;
	position: relative;
}

/* Top italic label */
.sci-age-panel__label {
	position: absolute;
	top: 0;
	left: 0;
	background: #fff;
	padding: 8px 20px;
	font-style: italic;
	font-size: 16px;
	color: #333;
	z-index: 2;
}

/* Inner layout: content left + watermark right */
.sci-age-panel__inner {
	display: flex;
	align-items: flex-start;
	min-height: inherit;
	padding: 70px 40px 40px;
	position: relative;
	z-index: 1;
}

.sci-age-panel__content {
	flex: 0 0 45%;
	max-width: 500px;
	position: relative;
	z-index: 2;
}

/* Watermark large number in background */
.sci-age-panel__watermark {
	position: absolute;
	right: 12%;
	top: 50%;
	transform: translateY(-50%);
	font-size: clamp(120px, 18vw, 240px);
	font-weight: 900;
	color: rgba(255,255,255,.18);
	line-height: 1;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}

/* Heading */
.sci-age-panel__heading {
	font-size: clamp(28px, 3.5vw, 48px);
	line-height: 1.15;
	margin: 0 0 20px;
	color: #111;
}
.sci-age-panel__heading em {
	font-weight: 400;
	font-style: italic;
	display: block;
}
.sci-age-panel__heading strong {
	font-weight: 900;
	font-style: normal;
	display: block;
}

/* Description */
.sci-age-panel__desc {
	font-size: 15px;
	line-height: 1.7;
	color: #222;
	margin-bottom: 32px;
}

/* Procedures */
.sci-age-panel__proc-heading {
	font-size: 13px;
	font-weight: 900;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #111;
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 3px solid #1F8290;
	display: inline-block;
}

.sci-age-panel__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.sci-age-pill {
	display: inline-block;
	padding: 8px 16px;
	background: #1F8290;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	border-radius: 3px;
	text-decoration: none;
	border: 2px solid #1F8290;
	transition: background .15s, color .15s;
	cursor: default;
}
a.sci-age-pill {
	cursor: pointer;
}
a.sci-age-pill:hover {
	background: #fff;
	color: #1F8290;
}

/* ── Responsive ── */
@media ( max-width: 768px ) {

	.sci-age-tabs {
		display: block !important;
		min-height: 0;
	}

	/* Tab bar: compact so all 7 decades fit on screen */
	.sci-age-tabs__sidebar {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		width: 100% !important;
		box-sizing: border-box;
		overflow-x: auto !important;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.sci-age-tabs__sidebar::-webkit-scrollbar { display: none; }

	.sci-age-tab-btn {
		flex: 1 0 auto !important;   /* grow to fill, never shrink below content */
		width: auto !important;
		padding: 14px 10px !important;
		font-size: 15px !important;
		white-space: nowrap !important;
		text-align: center;
	}

	/* Panels */
	.sci-age-tabs__panels {
		display: block !important;
		width: 100% !important;
	}
	.sci-age-panel {
		display: none !important;
		position: relative;
		width: 100% !important;
		min-height: 480px;
		box-sizing: border-box;
	}
	.sci-age-panel.active {
		display: block !important;
	}
	/* Force label hidden — it appears as a white box on mobile */
	.sci-age-panel__label {
		display: none !important;
		visibility: hidden !important;
	}
	.sci-age-panel__inner {
		display: block !important;
		padding: 24px 16px 32px;
		min-height: 480px;
	}
	.sci-age-panel__content {
		display: block !important;
		max-width: 100% !important;
		background: rgba(255,255,255,.82);
		border-radius: 4px;
		padding: 20px 16px;
		box-sizing: border-box;
	}
	.sci-age-panel__watermark { display: none !important; }
	.sci-age-panel__heading { font-size: 26px; }
	.sci-age-panel__desc { font-size: 14px; }
}
