/*
 * Content page template block styles.
 *
 * Scope:
 * - All selectors are namespaced to `.nse26-content`.
 */

/* --------------------------------------------------------------
>>> Theme tokens (Content scope)
-------------------------------------------------------------- */
.nse26-content {
	--nse26-color-text-primary: #141414;
	--nse26-color-text-inverse: #ffffff;
	--nse26-color-accent: #e5492a;
	--nse26-color-accent-hover: #a43a0b;
	--nse26-color-surface-muted: #f2f2f2;
	--nse26-color-surface-dark: #040404;
	--nse26-color-text-muted: #737373;
	--nse26-color-focus-ring: #141414;
	font-size: 18px;
	background-color: var(--nse26-color-surface-dark);
	max-width: 100%;
	overflow-x: clip;
}

.nse26-content--preface {
	background-color: transparent;
}

.nse26-content .nse26-content__title,
.nse26-content .nse26-content__block-title,
.nse26-content .nse26-content__countdown-label {
	color: #e5492a !important;
}

.nse26-content .nse26-content__section--theme-dark .nse26-wysiwyg,
.nse26-content .nse26-content__section--theme-dark .nse26-wysiwyg :is(h1, h2, h3, h4, h5, h6, p, li, blockquote, .nse26-wysiwyg-quote-label) {
	color: #ffffff !important;
}

/* --------------------------------------------------------------
>>> Intro (breadcrumb, title, hero)
-------------------------------------------------------------- */
.nse26-content .nse26-content__intro {
	padding-top: 56px;
	padding-bottom: 56px;
}

.nse26-content .nse26-content__breadcrumb {
	margin: 0 0 24px;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
}

.nse26-content .nse26-content__breadcrumb-separator {
	opacity: 0.6;
	font-weight: 300;
	margin: 0 0.25rem;
}

.nse26-content .nse26-content__title {
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 2.125rem);
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	text-wrap: balance;
}

.nse26-content .nse26-content__hero {
	margin-top: 32px;
	align-items: start;
}

.nse26-content .nse26-content__hero-content {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.nse26-content .nse26-content__hero-media {
	overflow: hidden;
	border-radius: 6px;
}

.nse26-content .nse26-content__hero-media img {
	display: block;
	width: 100%;
	height: auto;
}

.nse26-content .nse26-content__intro-body {
	margin-top: 32px;
}

.nse26-content .nse26-content__section-inner {
	max-width: 100%;
}

.nse26-content .nse26-template__layout-col,
.nse26-content .nse26-content__stack {
	min-width: 0;
}

/* Reusable vertical stack for block groups. */
.nse26-content .nse26-content__stack {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.nse26-content .nse26-content__stack--center {
	align-items: center;
	text-align: center;
}

.nse26-content .nse26-content__stack--center .nse26-wysiwyg,
.nse26-content .nse26-content__stack--center .nse26-content__block-title,
.nse26-content .nse26-content__stack--center .nse26-content__countdown-label {
	width: 100%;
	max-width: 600px;
	text-align: center;
}

.nse26-content .nse26-content__stack--center .nse26-wysiwyg ul {
	display: inline-block;
	max-width: 100%;
	text-align: left;
}

.nse26-content .nse26-content__stack--center .nse26-content__tabs,
.nse26-content .nse26-content__stack--center .nse26-content__tabs .nse26-wysiwyg {
	width: 100%;
	max-width: none;
	text-align: left;
}

.nse26-content .nse26-content__stack--center .nse26-wysiwyg ol {
	padding-left: 0;
	list-style-position: inside;
}

.nse26-content .nse26-content__stack--center .nse26-content__links {
	justify-content: center;
}

.nse26-content .nse26-content__stack--center .nse26-content__gallery {
	justify-content: center;
}

.nse26-content .nse26-content__stack--center .nse26-content__countdown {
	align-items: center;
	width: 100%;
}

.nse26-content .nse26-content__stack--center .nse26-content__countdown-grid {
	width: fit-content;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.nse26-content .nse26-content__stack--center .nse26-content__people {
	justify-items: center;
	width: 100%;
}

.nse26-content .nse26-content__stack--center:not(.nse26-content__stack--layout-full-width) .nse26-content__block-media,
.nse26-content .nse26-content__stack--center:not(.nse26-content__stack--layout-full-width) .nse26-content__embed,
.nse26-content .nse26-content__stack--center:not(.nse26-content__stack--layout-full-width) .nse26-content__cards,
.nse26-content .nse26-content__stack--center:not(.nse26-content__stack--layout-full-width) .nse26-content__tabs,
.nse26-content .nse26-content__stack--center:not(.nse26-content__stack--layout-full-width) .nse26-content__gallery {
	width: 100%;
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

.nse26-content .nse26-content__stack--layout-full-width .nse26-content__block-media,
.nse26-content .nse26-content__stack--layout-full-width .nse26-content__embed,
.nse26-content .nse26-content__stack--layout-full-width .nse26-content__cards,
.nse26-content .nse26-content__stack--layout-full-width .nse26-content__tabs,
.nse26-content .nse26-content__stack--layout-full-width .nse26-content__gallery {
	align-self: stretch;
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.nse26-content .nse26-content__stack--layout-full-width .nse26-content__block-media,
.nse26-content .nse26-content__stack--layout-full-width .nse26-content__embed {
	border-radius: 0;
}

/* --------------------------------------------------------------
>>> Links
-------------------------------------------------------------- */
.nse26-content .nse26-content__links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nse26-content .nse26-content__links-item {
	margin: 0;
}

.nse26-content .nse26-content__link-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 36px;
	border: 1px solid var(--nse26-color-text-primary);
	border-radius: 9999px;
	background-color: transparent;
	color: var(--nse26-color-text-primary) !important;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nse26-content .nse26-content__link-button:hover,
.nse26-content .nse26-content__link-button:focus {
	background-color: var(--nse26-color-text-primary);
	border-color: var(--nse26-color-text-primary);
	color: var(--nse26-color-text-inverse) !important;
	text-decoration: none;
}

.nse26-content .nse26-content__link-button:focus-visible {
	outline: 2px solid var(--nse26-color-focus-ring);
	outline-offset: 2px;
}

/* --------------------------------------------------------------
>>> Layout sections
-------------------------------------------------------------- */
.nse26-content .nse26-content__section {
	padding-top: 60px;
	padding-bottom: 60px;
}

.nse26-content .nse26-content__section:not(.nse26-content__section--surface-muted):not(.nse26-content__section--theme-dark) {
	background-color: #ffffff;
}

.nse26-content .nse26-content__section--surface-muted + .nse26-content__section--surface-muted,
.nse26-content .nse26-content__section--theme-dark + .nse26-content__section--theme-dark {
	padding-top: 0;
}

.nse26-content .nse26-content__section-inner--animate {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.nse26-content .nse26-content__section-inner--animate.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.nse26-content .nse26-content__section-inner--animate {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

.nse26-content .nse26-content__section--surface-muted {
	background-color: var(--nse26-color-surface-muted);
}

.nse26-content .nse26-content__section--theme-dark {
	--nse26-color-text-primary: #ffffff;
	--nse26-color-text-muted: rgba(255, 255, 255, 0.75);
	--nse26-color-focus-ring: #ffffff;
	background-color: var(--nse26-color-surface-dark);
	color: #ffffff;
}

.nse26-content .nse26-content__section--theme-dark.nse26-content__section--surface-muted {
	background-color: var(--nse26-color-surface-dark);
}

.nse26-content .nse26-content__section--theme-dark .liquid-counter-element,
.nse26-content .nse26-content__section--theme-dark .liquid-counter-element .text-dark,
.nse26-content .nse26-content__section--theme-dark .liquid-counter-text {
	color: #ffffff !important;
}

.nse26-content .nse26-content__section--theme-dark .nse26-content__link-button:hover,
.nse26-content .nse26-content__section--theme-dark .nse26-content__link-button:focus {
	background-color: #ffffff;
	border-color: #ffffff;
	color: #000000 !important;
}

/* --------------------------------------------------------------
>>> Block: title
-------------------------------------------------------------- */
.nse26-content .nse26-content__block-title {
	margin: 0;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	overflow-wrap: break-word;
	hyphens: auto;
}

/* --------------------------------------------------------------
>>> Block: image
-------------------------------------------------------------- */
.nse26-content .nse26-content__block-media {
	overflow: hidden;
	border-radius: 6px;
}

.nse26-content .nse26-content__block-media img {
	display: block;
	width: 100%;
	height: auto;
}

/* --------------------------------------------------------------
>>> Block: cards (Challenge categories pattern)
-------------------------------------------------------------- */
.nse26-content .nse26-content__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.nse26-content .nse26-content__card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
	min-height: 200px;
	min-width: 0;
	padding: 32px 56px;
	border-radius: 16px;
	text-align: center;
	background-color: var(--nse26-color-accent);
	color: var(--nse26-color-text-inverse);
}

.nse26-content .nse26-content__card-title {
	margin: 0;
	color: inherit;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.25;
}

.nse26-content .nse26-content__card-body {
	margin: 0;
	color: inherit;
	font-size: 1rem;
	line-height: 1.55;
}

.nse26-content .nse26-content__card-body > :first-child {
	margin-top: 0;
}

.nse26-content .nse26-content__card-body > :last-child {
	margin-bottom: 0;
}

.nse26-content .nse26-content__card-body :is(h1, h2, h3, h4, h5, h6, p, li, blockquote, a, strong, b) {
	color: inherit !important;
}

/* --------------------------------------------------------------
>>> Block: gallery
-------------------------------------------------------------- */
.nse26-content .nse26-content__gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.nse26-content .nse26-content__gallery-item {
	flex: 0 0 130px;
	width: 130px;
	height: 130px;
}

.nse26-content .nse26-content__gallery-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* --------------------------------------------------------------
>>> Block: people
-------------------------------------------------------------- */
.nse26-content .nse26-content__people {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 32px;
	text-align: center;
}

.nse26-content .nse26-content__person {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.nse26-content .nse26-content__person-avatar {
	width: 160px;
	height: 160px;
	overflow: hidden;
	border-radius: 9999px;
}

.nse26-content .nse26-content__person-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nse26-content .nse26-content__person-name {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

.nse26-content .nse26-content__person-meta {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--nse26-color-text-muted);
}

@media (min-width: 576px) {
	.nse26-content .nse26-content__people {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.nse26-content .nse26-content__people {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991.98px) {
	.nse26-content .nse26-content__intro,
	.nse26-content .nse26-content__section {
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.nse26-content .nse26-content__block-title {
		font-size: 28px;
	}

	.nse26-content .nse26-content__link-button {
		min-height: 50px;
		padding: 0 30px;
		font-size: 1.0625rem;
	}

	.nse26-content .nse26-content__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575.98px) {
	.nse26-content .nse26-content__title {
		font-size: 1.625rem;
	}

	.nse26-content .nse26-content__cards {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.nse26-content .nse26-content__card {
		min-height: 160px;
		padding: 28px 24px;
	}
}

/* --------------------------------------------------------------
>>> Block: countdown (liquid-counter, matches home page)
-------------------------------------------------------------- */
.nse26-content .nse26-content__countdown {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.nse26-content .nse26-content__countdown-label {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.3;
}

.nse26-content .nse26-content__countdown-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	align-items: center;
}

.nse26-content .nse26-content__countdown .liquid-counter-animator {
	width: 30px;
}

@media (max-width: 767.98px) {
	.nse26-content .nse26-content__countdown-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* --------------------------------------------------------------
>>> Block: embed
-------------------------------------------------------------- */
.nse26-content .nse26-content__embed {
	overflow: hidden;
	border-radius: 6px;
	background-color: var(--nse26-color-surface-muted);
}

.nse26-content .nse26-content__section--theme-dark .nse26-content__embed {
	background-color: var(--nse26-color-surface-dark);
}

.nse26-content .nse26-content__embed iframe {
	display: block;
	width: 100%;
	height: auto;
	min-height: 240px;
	aspect-ratio: 16 / 9;
	border: 0;
}

/* --------------------------------------------------------------
>>> Block: tabs (Alpine.js)
-------------------------------------------------------------- */
[x-cloak] {
	display: none !important;
}

.nse26-content .nse26-content__tabs {
	--nse26-tabs-accent: #7fc4e6;
	--nse26-tabs-accent-strong: #5eb5dc;
	--nse26-tabs-accent-soft: rgba(127, 196, 230, 0.18);
	display: grid;
	grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	width: 100%;
	text-align: left;
}

.nse26-content .nse26-content__tabs-nav {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nse26-content .nse26-content__tabs-trigger {
	display: block;
	width: 100%;
	margin: 0;
	padding: 10px 16px;
	border: 1px solid transparent;
	border-radius: 9999px;
	background: transparent;
	color: var(--nse26-color-text-primary);
	font: inherit;
	font-size: 0.8125rem;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nse26-content .nse26-content__section--theme-dark .nse26-content__tabs-trigger {
	color: var(--nse26-color-text-inverse);
}

.nse26-content .nse26-content__tabs-trigger:hover {
	border-color: var(--nse26-tabs-accent);
	color: var(--nse26-tabs-accent-strong);
	background-color: var(--nse26-tabs-accent-soft);
}

.nse26-content .nse26-content__tabs-trigger.is-active,
.nse26-content .nse26-content__tabs-trigger[aria-selected="true"] {
	border-color: var(--nse26-tabs-accent);
	color: var(--nse26-tabs-accent-strong);
	background-color: var(--nse26-tabs-accent-soft);
}

.nse26-content .nse26-content__section--theme-dark .nse26-content__tabs-trigger.is-active,
.nse26-content .nse26-content__section--theme-dark .nse26-content__tabs-trigger[aria-selected="true"] {
	color: var(--nse26-tabs-accent);
	background-color: rgba(127, 196, 230, 0.14);
}

.nse26-content .nse26-content__tabs-trigger:focus-visible {
	outline: 2px solid var(--nse26-tabs-accent);
	outline-offset: 2px;
}

.nse26-content .nse26-content__tabs-panels {
	min-width: 0;
}

.nse26-content .nse26-content__tabs-panel {
	min-height: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
}

.nse26-content .nse26-content__section--theme-dark .nse26-content__tabs-panel {
	background: none;
	border: 0;
}

.nse26-content .nse26-content__tabs-panel-body {
	text-align: left;
}

.nse26-content .nse26-content__tabs-panel-body ul,
.nse26-content .nse26-content__tabs-panel-body ol {
	display: block;
	text-align: left;
}

.nse26-content .nse26-content__tabs-panel-body > *:first-child {
	margin-top: 0;
}

.nse26-content .nse26-content__tabs-panel-body > *:last-child {
	margin-bottom: 0;
}

@media (max-width: 767.98px) {
	.nse26-content .nse26-content__tabs {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.nse26-content .nse26-content__tabs-nav {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
	}

	.nse26-content .nse26-content__tabs-trigger {
		width: auto;
		padding: 10px 16px;
	}
}
