/*
 * Editable AikoGx News pattern.
 * The selectors are isolated from the Devlog pattern so both templates can
 * evolve independently and existing posts keep their current presentation.
 */
.aikogx-news-template {
	--aikogx-news-bg: #17152b;
	--aikogx-news-bg-deep: #111326;
	--aikogx-news-line: rgba(225, 81, 210, 0.38);
	--aikogx-news-line-soft: rgba(165, 125, 232, 0.22);
	--aikogx-news-cream: #f7e3ca;
	--aikogx-news-body: #e1d7e5;
	--aikogx-news-muted: #b9aec6;
	--aikogx-news-pink: #ee3ea2;
	--aikogx-news-cyan: #68c9e3;
	width: min(100%, 1120px);
	max-width: 1120px;
	margin: 0 auto;
	color: var(--aikogx-news-body);
	background: transparent;
	font: 400 16px/1.7 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.aikogx-news-template,
.aikogx-news-template * {
	box-sizing: border-box;
}

.aikogx-news-template__topbar {
	display: flex !important;
	min-height: 72px;
	margin: 0 !important;
	padding: 0.8rem 0;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 1rem;
	border-bottom: 1px solid var(--aikogx-news-line-soft);
}

.aikogx-news-template__top-meta {
	margin: 0 !important;
	color: var(--aikogx-news-muted);
	font-size: 0.67rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	line-height: 1.3;
	text-align: left;
	text-transform: uppercase;
}

.aikogx-news-template__hero {
	margin: 0 !important;
	padding: 5rem 0 0;
}

.aikogx-news-template__kicker,
.aikogx-news-template__social-label {
	margin: 0 !important;
	color: var(--aikogx-news-pink);
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.2em;
	line-height: 1.3;
	text-transform: uppercase;
}

.aikogx-news-template__title {
	max-width: 100%;
	margin: 0.7rem 0 0 !important;
	color: var(--aikogx-news-cream);
	font-size: clamp(3.2rem, 7.5vw, 6.2rem) !important;
	line-height: 0.91 !important;
	letter-spacing: -0.065em;
	overflow-wrap: anywhere;
}

.aikogx-news-template__dek {
	max-width: 62ch;
	margin: 1.55rem 0 0 !important;
	color: var(--aikogx-news-body);
	font-size: clamp(1.03rem, 1.8vw, 1.2rem);
	line-height: 1.55;
}

.aikogx-news-template__meta {
	display: flex !important;
	margin: 1.35rem 0 0 !important;
	align-items: center !important;
	gap: 0.65rem 1.2rem !important;
}

.aikogx-news-template__meta p {
	margin: 0 !important;
	color: var(--aikogx-news-muted);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
}

.aikogx-news-template__tag {
	padding: 0.3rem 0.55rem;
	border: 1px solid var(--aikogx-news-line);
	color: var(--aikogx-news-pink) !important;
}

.aikogx-news-template__media,
.aikogx-news-template__supporting-media {
	position: relative;
	display: grid !important;
	margin: clamp(2.8rem, 5vw, 4.2rem) 0 0 !important;
	overflow: hidden;
	place-items: center;
	border: 1px solid var(--aikogx-news-line);
	background:
		linear-gradient(180deg, rgba(10, 10, 30, 0.02), rgba(5, 5, 16, 0.78)),
		radial-gradient(circle at 74% 36%, rgba(213, 71, 219, 0.65), transparent 18%),
		linear-gradient(135deg, #173f76 0%, #2a1858 48%, #101026 100%);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.aikogx-news-template__media {
	min-height: clamp(18rem, 42vw, 31rem) !important;
}

.aikogx-news-template__supporting-media {
	min-height: clamp(16rem, 28vw, 21rem) !important;
	margin-top: 2.4rem !important;
	border-color: var(--aikogx-news-line-soft);
	background:
		linear-gradient(180deg, rgba(10, 10, 30, 0.02), rgba(5, 5, 16, 0.74)),
		radial-gradient(circle at 72% 42%, rgba(104, 201, 227, 0.34), transparent 22%),
		linear-gradient(135deg, #17334f 0%, #2a1858 54%, #151328 100%);
}

.aikogx-news-template__media::before,
.aikogx-news-template__supporting-media::before {
	position: absolute;
	inset: 0;
	content: "";
	background: repeating-linear-gradient(120deg, transparent 0 12rem, rgba(220, 91, 221, 0.13) 12.1rem 12.2rem, transparent 12.3rem 23rem);
	opacity: 0.55;
	pointer-events: none;
}

.aikogx-news-template__media .wp-block-cover__background,
.aikogx-news-template__supporting-media .wp-block-cover__background {
	background: transparent !important;
	opacity: 0 !important;
}

.aikogx-news-template__media .wp-block-cover__inner-container,
.aikogx-news-template__supporting-media .wp-block-cover__inner-container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 100%;
	padding: 2rem;
	text-align: center;
}

.aikogx-news-template__media-help {
	margin: 0 !important;
	color: rgba(247, 227, 202, 0.78);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	line-height: 1.5;
	text-transform: uppercase;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.aikogx-news-template__story {
	max-width: 980px;
	margin: clamp(3.5rem, 7vw, 6rem) 0 0 !important;
}

.aikogx-news-template__story > .wp-block-group {
	margin: 0 !important;
}

.aikogx-news-template__section + .aikogx-news-template__section {
	margin-top: clamp(3rem, 6vw, 5rem) !important;
	padding-top: clamp(2rem, 4vw, 3rem);
	border-top: 1px solid var(--aikogx-news-line-soft);
}

.aikogx-news-template__heading {
	max-width: 100%;
	margin: 0.7rem 0 0 !important;
	color: var(--aikogx-news-cream);
	font-size: clamp(1.9rem, 3.4vw, 3rem) !important;
	line-height: 1.04 !important;
	letter-spacing: -0.045em;
	overflow-wrap: anywhere;
}

.aikogx-news-template__section > p:not(.aikogx-news-template__kicker) {
	max-width: 100%;
	margin: 1.15rem 0 0 !important;
	color: var(--aikogx-news-body);
}

.aikogx-news-template__callout {
	max-width: 100%;
	margin: 2rem 0 0 !important;
	padding: 1.2rem 1.35rem;
	border-left: 2px solid var(--aikogx-news-pink);
	background: linear-gradient(100deg, rgba(238, 62, 162, 0.14), rgba(16, 13, 30, 0.16));
}

.aikogx-news-template__callout p {
	margin: 0 !important;
}

.aikogx-news-template__callout-title {
	color: var(--aikogx-news-cream);
}

.aikogx-news-template__callout-copy {
	margin-top: 0.35rem !important;
	color: var(--aikogx-news-muted);
}

.aikogx-news-template__quote {
	max-width: 100%;
	margin: 2rem 0 0 !important;
	padding: 1.1rem 1.35rem;
	border-left: 4px solid rgba(247, 227, 202, 0.72);
	color: #282334;
	background: linear-gradient(100deg, #adb3b2, #8f9699);
	font-size: 1.05rem;
	font-style: italic;
}

.aikogx-news-template__quote p {
	margin: 0 !important;
}

.aikogx-news-template__social {
	display: flex !important;
	margin: clamp(3.5rem, 7vw, 6rem) 0 0 !important;
	padding: 1.25rem 0 1.45rem;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 1.5rem;
	border-top: 1px solid var(--aikogx-news-line-soft);
}

.aikogx-news-template__social-links {
	display: flex !important;
	margin: 0 !important;
	padding: 0 !important;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem 1.15rem !important;
	list-style: none;
}

.aikogx-news-template__social-links .wp-social-link {
	margin: 0 !important;
	padding: 0.25rem 0.05rem;
	color: var(--aikogx-news-body) !important;
	background: transparent !important;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: color 0.2s ease, transform 0.2s ease;
}

.aikogx-news-template__social-links .wp-social-link:hover,
.aikogx-news-template__social-links .wp-social-link:focus-visible {
	color: var(--aikogx-news-cream) !important;
	transform: translateY(-1px);
}

.aikogx-news-template__social-links .wp-social-link svg {
	width: 1.45rem;
	height: 1.45rem;
	margin-right: 0.4rem;
	padding: 0.23rem;
	border: 1px solid var(--aikogx-news-line);
	border-radius: 50%;
	color: var(--aikogx-news-cyan);
	background: rgba(8, 8, 24, 0.35);
	fill: currentColor;
}

@media (max-width: 760px) {
	.aikogx-news-template {
		width: calc(100% - 2rem);
	}

	.aikogx-news-template__topbar {
		min-height: 64px;
	}

	.aikogx-news-template__hero {
		padding-top: 3rem;
	}

	.aikogx-news-template__title {
		max-width: 10ch;
		font-size: clamp(2.85rem, 14vw, 4.7rem) !important;
	}

	.aikogx-news-template__dek {
		font-size: 1rem;
	}

	.aikogx-news-template__media {
		min-height: 16rem !important;
		margin-top: 2.3rem !important;
	}

	.aikogx-news-template__supporting-media {
		min-height: 13rem !important;
	}

	.aikogx-news-template__social {
		align-items: flex-start !important;
		flex-direction: column;
		gap: 1rem;
	}

	.aikogx-news-template__social-links {
		justify-content: flex-start;
	}
}

@media (max-width: 420px) {
	.aikogx-news-template {
		width: calc(100% - 1.5rem);
	}

	.aikogx-news-template__topbar {
		align-items: flex-start !important;
		flex-direction: column;
	}

	.aikogx-news-template__top-meta {
		font-size: 0.58rem;
	}

	.aikogx-news-template__meta {
		gap: 0.5rem 0.75rem !important;
	}

	.aikogx-news-template__meta p {
		font-size: 0.6rem;
	}

	.aikogx-news-template__media-help {
		font-size: 0.58rem;
	}

	.aikogx-news-template__media {
		min-height: 14rem !important;
	}
}
