/*
 * Aurevia Nexus UI
 * An original, app-inspired visual layer for desktop and mobile publishing.
 */

:root {
	--color-ink-soft: #252b45;
	--color-accent-bright: #8f7ff5;
	--color-accent-pale: #eeebff;
	--color-paper: #f5f7fb;
	--color-surface: #ffffff;
	--color-border: #e7e9f2;
	--color-muted: #697089;
	--color-text: #343a52;
	--nexus-aqua: #2dd4bf;
	--nexus-pink: #ff6b9d;
	--nexus-yellow: #ffc857;
	--nexus-blue: #4d9fff;
	--font-display: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--shadow-soft: 0 24px 70px rgba(30, 35, 71, 0.10);
	--shadow-card: 0 14px 40px rgba(30, 35, 71, 0.08);
	--nexus-shadow-hover: 0 24px 60px rgba(48, 42, 111, 0.15);
	--radius-sm: 12px;
	--radius-md: 20px;
	--radius-lg: 30px;
	--container: 1220px;
	--container-wide: 1380px;
	--container-narrow: 820px;
	--header-height: 96px;
}

html {
	background: var(--color-paper);
}

body {
	background:
		radial-gradient(circle at 8% 6%, rgba(108, 92, 231, 0.08), transparent 24rem),
		var(--color-paper);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--color-ink);
	font-family: var(--font-display);
	font-weight: 800;
	letter-spacing: -0.035em;
}

a {
	transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

::selection {
	background: var(--color-accent);
	color: #fff;
}

.container,
.container-wide,
.container-narrow {
	padding-right: clamp(20px, 4vw, 34px);
	padding-left: clamp(20px, 4vw, 34px);
}

.button,
button.button,
input[type="submit"] {
	min-height: 46px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--color-accent), #8c62ed);
	box-shadow: 0 12px 28px rgba(108, 92, 231, 0.22);
	color: #fff;
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: none;
}

.button:hover,
button.button:hover,
input[type="submit"]:hover {
	box-shadow: 0 16px 36px rgba(108, 92, 231, 0.32);
	color: #fff;
	transform: translateY(-2px);
}

.button-light {
	background: #fff;
	box-shadow: none;
	color: var(--color-accent);
}

.button-light:hover {
	background: #f7f5ff;
	color: #4e3fc0;
}

.button-ghost-light {
	border: 1px solid rgba(255, 255, 255, 0.38);
	background: rgba(255, 255, 255, 0.08);
	box-shadow: none;
	color: #fff;
}

.eyebrow,
.journal-overline,
.card-kicker {
	color: var(--color-accent);
	font-family: var(--font-body);
	font-size: 0.69rem;
	font-weight: 850;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

/* Header */
.nexus-header.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	height: auto;
	border: 0;
	background: transparent;
	box-shadow: none;
	padding: 12px 0 0;
}

.admin-bar .nexus-header.site-header {
	top: 32px;
}

.nexus-header-shell {
	display: grid;
	grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
	align-items: center;
	min-height: 70px;
	border: 1px solid rgba(255, 255, 255, 0.88);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 16px 50px rgba(30, 35, 71, 0.10);
	backdrop-filter: blur(22px);
}

.nexus-branding {
	min-width: 0;
}

.nexus-wordmark,
.nexus-footer-wordmark {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--color-ink);
}

.nexus-brand-mark {
	position: relative;
	display: grid;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	place-items: center;
	overflow: hidden;
	border-radius: 13px;
	background: linear-gradient(135deg, #7464ef 0%, #9d67e8 55%, #ff80ae 100%);
	box-shadow: 0 9px 20px rgba(108, 92, 231, 0.28);
}

.nexus-brand-mark::before,
.nexus-brand-mark::after,
.nexus-brand-mark > span {
	position: absolute;
	content: "";
	border-radius: 999px;
	background: #fff;
}

.nexus-brand-mark::before {
	width: 9px;
	height: 24px;
	transform: translateX(-6px) rotate(-28deg);
}

.nexus-brand-mark::after {
	width: 9px;
	height: 24px;
	transform: translateX(6px) rotate(-28deg);
}

.nexus-brand-mark > span {
	width: 15px;
	height: 9px;
}

.nexus-brand-copy {
	display: grid;
	line-height: 1.1;
}

.nexus-brand-copy strong,
.nexus-footer-wordmark strong {
	font-size: 1.03rem;
	font-weight: 850;
	letter-spacing: -0.035em;
}

.nexus-brand-copy small {
	margin-top: 5px;
	color: var(--color-muted);
	font-size: 0.59rem;
	font-weight: 700;
	letter-spacing: 0.035em;
}

.nexus-navigation .primary-menu,
.nexus-navigation .menu {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 5px;
	border-radius: 14px;
	background: #f3f4f9;
	list-style: none;
}

.nexus-navigation .primary-menu a,
.nexus-navigation .menu a {
	display: block;
	padding: 9px 14px;
	border-radius: 10px;
	color: #555c73;
	font-size: 0.75rem;
	font-weight: 750;
	letter-spacing: 0;
	text-transform: none;
}

.nexus-navigation .current-menu-item > a,
.nexus-navigation .current_page_item > a,
.nexus-navigation a:hover {
	background: #fff;
	box-shadow: 0 5px 14px rgba(30, 35, 71, 0.08);
	color: var(--color-ink);
}

.nexus-header-actions {
	justify-self: end;
}

.nexus-header .icon-button {
	width: 42px;
	height: 42px;
	border: 1px solid var(--color-border);
	border-radius: 13px;
	background: #fff;
	color: var(--color-ink);
}

.nexus-header .icon-button:hover {
	border-color: #cfc9ff;
	background: var(--color-accent-pale);
	color: var(--color-accent);
}

.nexus-create-button {
	min-height: 42px;
	padding: 0 17px;
	border-radius: 13px;
}

.nexus-create-button span {
	margin-right: 4px;
}

.nexus-search-panel {
	position: fixed;
	inset: 0;
	z-index: 1100;
	padding-top: 120px;
	background: rgba(16, 20, 38, 0.62);
	backdrop-filter: blur(12px);
}

.nexus-search-panel[hidden] {
	display: none;
}

.nexus-search-panel .header-search-inner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 24px;
	max-width: 840px;
	padding: 32px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 26px;
	background: #fff;
	box-shadow: 0 35px 100px rgba(10, 13, 30, 0.3);
}

.nexus-search-label {
	display: block;
	margin-bottom: 12px;
	color: var(--color-muted);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.nexus-search-panel .search-form {
	max-width: none;
}

.nexus-search-panel .search-field {
	height: 58px;
	border-radius: 15px 0 0 15px;
	background: #f5f6fa;
}

.nexus-search-panel .search-submit {
	border-radius: 0 15px 15px 0;
}

.nexus-search-panel .search-close {
	align-self: start;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: #f1f2f7;
	color: var(--color-ink);
}

.nexus-mobile-nav {
	display: none;
}

/* Shared cards */
.content-card {
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 9px 30px rgba(34, 39, 76, 0.055);
}

.content-card:hover {
	border-color: #d8d2ff;
	box-shadow: var(--nexus-shadow-hover);
	transform: translateY(-6px);
}

.content-card .card-media {
	position: relative;
	aspect-ratio: 1.46;
	overflow: hidden;
	background: linear-gradient(135deg, #e5e0ff, #d5f8f2);
}

.content-card .card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.content-card:hover .card-media img {
	transform: scale(1.045);
}

.content-card .card-body {
	padding: 22px 22px 20px;
}

.content-card .card-title {
	margin: 9px 0 10px;
	font-size: clamp(1.12rem, 2vw, 1.4rem);
	line-height: 1.18;
}

.content-card .card-title a {
	color: var(--color-ink);
}

.content-card .card-excerpt {
	color: var(--color-muted);
	font-size: 0.9rem;
	line-height: 1.6;
}

.content-card .card-excerpt p {
	margin: 0;
}

.content-card .entry-meta {
	margin-top: 17px;
	color: #8a90a4;
	font-size: 0.68rem;
}

.content-card .card-read-more {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 18px;
	padding-top: 15px;
	border-top: 1px solid #eff0f5;
	color: var(--color-ink);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: none;
}

.content-card .card-read-more span {
	display: grid;
	width: 28px;
	height: 28px;
	place-items: center;
	border-radius: 9px;
	background: var(--color-accent-pale);
	color: var(--color-accent);
}

.content-card .article-badge {
	top: 14px;
	right: 14px;
	bottom: auto;
	left: auto;
	border-radius: 999px;
	background: rgba(20, 25, 45, 0.78);
	backdrop-filter: blur(8px);
	font-size: 0.62rem;
	letter-spacing: 0.08em;
}

.image-fallback {
	min-height: 100%;
	background:
		radial-gradient(circle at 75% 25%, rgba(255,255,255,0.7), transparent 22%),
		linear-gradient(135deg, #dcd6ff 0%, #e9e6ff 43%, #c9f7ef 100%);
}

.image-fallback span {
	color: rgba(74, 58, 170, 0.42);
	font-family: var(--font-display);
	font-size: 4rem;
	font-weight: 900;
}

.card-grid-three,
.nexus-feed-grid {
	gap: 24px;
}

/* Homepage */
.home-hero {
	position: relative;
	overflow: hidden;
	min-height: auto;
	padding: clamp(58px, 8vw, 104px) 0 76px;
	background:
		radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.95), transparent 25rem),
		linear-gradient(135deg, #ece8ff 0%, #f5f7fb 50%, #dbfbf5 100%);
	color: var(--color-text);
}

.home-hero .hero-grid {
	align-items: center;
	gap: clamp(38px, 7vw, 92px);
}

.home-hero .hero-copy h1 {
	max-width: 720px;
	margin: 17px 0 23px;
	color: var(--color-ink);
	font-size: clamp(3.2rem, 6.6vw, 6.7rem);
	font-weight: 900;
	line-height: 0.94;
	letter-spacing: -0.075em;
}

.home-hero .hero-copy > p {
	max-width: 600px;
	color: #626a82;
	font-size: clamp(1rem, 1.5vw, 1.17rem);
}

.home-hero .eyebrow-light {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border: 1px solid rgba(108, 92, 231, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--color-accent);
}

.home-hero .button-light {
	background: linear-gradient(135deg, var(--color-accent), #8c62ed);
	box-shadow: 0 14px 34px rgba(108, 92, 231, 0.25);
	color: #fff;
}

.home-hero .button-ghost-light {
	border-color: #d9d5e8;
	background: rgba(255, 255, 255, 0.6);
	color: var(--color-ink);
}

.home-hero .hero-stats {
	border-color: rgba(75, 70, 115, 0.12);
}

.home-hero .hero-stats strong {
	color: var(--color-ink);
}

.home-hero .hero-stats span {
	color: var(--color-muted);
}

.hero-orb-one {
	background: rgba(108, 92, 231, 0.18);
}

.hero-orb-two {
	background: rgba(45, 212, 191, 0.25);
}

.hero-feature {
	position: relative;
}

.hero-feature::before {
	position: absolute;
	top: -26px;
	right: -28px;
	width: 104px;
	height: 104px;
	border-radius: 28px;
	background: linear-gradient(135deg, var(--nexus-yellow), var(--nexus-pink));
	content: "";
	transform: rotate(12deg);
}

.hero-story {
	position: relative;
	border: 8px solid rgba(255,255,255,0.78);
	border-radius: 30px;
	background: #fff;
	box-shadow: 0 35px 90px rgba(63, 52, 131, 0.22);
	transform: rotate(1.5deg);
}

.hero-story-media {
	aspect-ratio: 1.24;
	border-radius: 22px;
}

.hero-story-body {
	padding: 24px 25px 23px;
}

.hero-story-body h2 {
	font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.hero-featured-label {
	color: var(--color-accent);
	font-size: 0.68rem;
	letter-spacing: 0.1em;
}

.topic-strip {
	border: 0;
	background: #fff;
	box-shadow: 0 10px 30px rgba(30, 35, 71, 0.04);
}

.topic-strip-inner a {
	border-radius: 999px;
	background: #f4f5f9;
	color: #5e657c;
}

.topic-strip-inner a:hover {
	background: var(--color-accent-pale);
	color: var(--color-accent);
}

.section-blog,
.home-promise {
	background: transparent;
}

.section-heading h2,
.nexus-feed-heading h2 {
	font-size: clamp(2rem, 4vw, 3.45rem);
	font-weight: 850;
}

.section-articles {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 85% 5%, rgba(45, 212, 191, 0.18), transparent 25rem),
		linear-gradient(135deg, #161a31, #252051 70%, #31275f);
}

.featured-article {
	overflow: hidden;
	border: 1px solid rgba(255,255,255,0.13);
	border-radius: 28px;
	background: rgba(255,255,255,0.08);
	box-shadow: 0 30px 80px rgba(8, 10, 25, 0.25);
	backdrop-filter: blur(12px);
}

.featured-article-media,
.featured-article-media img {
	min-height: 440px;
}

.featured-article-body {
	padding: clamp(32px, 5vw, 64px);
}

.featured-article-body h3 {
	font-size: clamp(2rem, 4vw, 4rem);
}

.article-grid-dark .content-card {
	border-color: rgba(255,255,255,0.12);
	background: rgba(255,255,255,0.08);
}

.article-grid-dark .content-card .card-body,
.article-grid-dark .content-card .card-title a {
	color: #fff;
}

.promise-grid {
	gap: clamp(40px, 8vw, 110px);
}

.promise-item {
	border: 1px solid var(--color-border);
	border-radius: 20px;
	background: #fff;
	padding: 24px;
	box-shadow: 0 10px 30px rgba(30, 35, 71, 0.05);
}

.promise-item > span {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 12px;
	background: var(--color-accent-pale);
	color: var(--color-accent);
}

/* Blog bento archive */
.nexus-blog-hero {
	position: relative;
	padding: clamp(56px, 7vw, 94px) 0 74px;
	background:
		radial-gradient(circle at 82% 10%, rgba(45, 212, 191, 0.15), transparent 25rem),
		linear-gradient(180deg, #f5f7fb 0%, #eeeffb 100%);
}

.nexus-page-intro {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 44px;
	margin-bottom: 38px;
}

.nexus-page-intro > div:first-child {
	max-width: 760px;
}

.nexus-page-intro h1 {
	margin: 15px 0 13px;
	font-size: clamp(4rem, 9vw, 8rem);
	font-weight: 900;
	line-height: 0.9;
	letter-spacing: -0.08em;
}

.nexus-page-intro h1 span {
	color: var(--color-accent);
}

.nexus-page-intro p {
	max-width: 650px;
	margin: 0;
	color: var(--color-muted);
	font-size: 1.03rem;
}

.nexus-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 12px;
	border: 1px solid #dbd7fa;
	border-radius: 999px;
	background: rgba(255,255,255,0.75);
	color: var(--color-accent);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.nexus-pill > span {
	color: var(--nexus-aqua);
	font-size: 0.55rem;
}

.nexus-intro-stat {
	display: grid;
	min-width: 170px;
	padding: 22px;
	border: 1px solid rgba(255,255,255,0.9);
	border-radius: 20px;
	background: rgba(255,255,255,0.62);
	box-shadow: 0 16px 42px rgba(30,35,71,0.07);
}

.nexus-intro-stat strong {
	color: var(--color-ink);
	font-size: 2.3rem;
	font-weight: 900;
	letter-spacing: -0.06em;
	line-height: 1;
}

.nexus-intro-stat span {
	margin-top: 6px;
	color: var(--color-muted);
	font-size: 0.72rem;
	font-weight: 700;
}

.nexus-feature-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.78fr) minmax(300px, 0.82fr);
	gap: 24px;
}

.nexus-lead-card {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.92fr);
	min-height: 500px;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,0.88);
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 26px 72px rgba(43, 42, 93, 0.12);
}

.nexus-lead-media {
	min-height: 100%;
	overflow: hidden;
	background: linear-gradient(135deg, #dcd6ff, #bff5ec);
}

.nexus-lead-media img,
.nexus-lead-media .image-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nexus-lead-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(28px, 4vw, 50px);
}

.nexus-lead-topline,
.nexus-lead-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.nexus-feature-label {
	color: var(--nexus-pink);
	font-size: 0.66rem;
	font-weight: 850;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.nexus-lead-card h2 {
	margin: 22px 0 16px;
	font-size: clamp(2rem, 3.5vw, 3.5rem);
	line-height: 1.03;
}

.nexus-lead-card h2 a {
	color: var(--color-ink);
}

.nexus-lead-excerpt {
	color: var(--color-muted);
	font-size: 0.94rem;
}

.nexus-lead-excerpt p {
	margin: 0;
}

.nexus-lead-footer {
	margin-top: auto;
	padding-top: 24px;
}

.nexus-lead-footer .entry-meta {
	color: #868da3;
	font-size: 0.7rem;
}

.nexus-round-link {
	display: grid;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	place-items: center;
	border-radius: 14px;
	background: var(--color-accent);
	box-shadow: 0 10px 24px rgba(108,92,231,0.25);
	color: #fff;
	font-size: 1.1rem;
}

.nexus-round-link:hover {
	background: #5544d1;
	color: #fff;
	transform: translateY(-2px) rotate(4deg);
}

.nexus-empty-card {
	grid-template-columns: 1fr 1fr;
}

.nexus-empty-visual {
	display: grid;
	min-height: 100%;
	place-items: center;
	background: linear-gradient(145deg, #dacfff, #bbf8ed);
	color: #fff;
	font-size: 7rem;
}

.nexus-trending-panel {
	display: flex;
	flex-direction: column;
	padding: 28px;
	border: 1px solid rgba(255,255,255,0.9);
	border-radius: 28px;
	background: rgba(255,255,255,0.72);
	box-shadow: 0 24px 64px rgba(43, 42, 93, 0.09);
	backdrop-filter: blur(16px);
}

.nexus-panel-heading {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--color-border);
}

.nexus-panel-heading span:first-child {
	color: var(--color-accent);
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nexus-panel-heading h2 {
	margin: 3px 0 0;
	font-size: 1.35rem;
}

.nexus-live-dot {
	width: 11px;
	height: 11px;
	margin-top: 7px;
	border: 3px solid #d1fbf5;
	border-radius: 50%;
	background: var(--nexus-aqua);
	box-sizing: content-box;
}

.nexus-trending-list {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nexus-trending-list li {
	display: grid;
	grid-template-columns: 36px 1fr;
	gap: 12px;
	padding: 17px 0;
	border-bottom: 1px solid #eceef4;
}

.nexus-trending-number {
	color: #c2c5d1;
	font-size: 0.7rem;
	font-weight: 850;
}

.nexus-trending-list a {
	display: grid;
	gap: 5px;
	color: var(--color-ink);
}

.nexus-trending-list strong {
	font-size: 0.86rem;
	line-height: 1.32;
}

.nexus-trending-list small {
	color: var(--color-muted);
	font-size: 0.65rem;
}

.nexus-panel-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 20px;
	color: var(--color-accent);
	font-size: 0.74rem;
	font-weight: 800;
}

.nexus-panel-empty {
	color: var(--color-muted);
}

.nexus-feed-section {
	padding: clamp(70px, 9vw, 120px) 0;
}

.nexus-feed-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 34px;
	margin-bottom: 38px;
}

.nexus-feed-heading h2 {
	margin: 5px 0 0;
}

.nexus-channel-tabs {
	display: flex;
	max-width: 610px;
	gap: 8px;
	overflow-x: auto;
	padding: 5px;
	border: 1px solid var(--color-border);
	border-radius: 15px;
	background: #fff;
	scrollbar-width: none;
}

.nexus-channel-tabs::-webkit-scrollbar {
	display: none;
}

.nexus-channel-tabs a {
	flex: 0 0 auto;
	padding: 9px 13px;
	border-radius: 10px;
	color: var(--color-muted);
	font-size: 0.69rem;
	font-weight: 750;
}

.nexus-channel-tabs a:hover,
.nexus-channel-tabs a.is-active {
	background: var(--color-accent);
	color: #fff;
}

.navigation.pagination {
	margin-top: 48px;
}

.nav-links .page-numbers {
	border: 1px solid var(--color-border);
	border-radius: 12px;
	background: #fff;
	color: var(--color-ink);
}

.nav-links .page-numbers.current,
.nav-links a.page-numbers:hover {
	border-color: var(--color-accent);
	background: var(--color-accent);
	color: #fff;
}

/* Article library */
.nexus-library-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(64px, 8vw, 108px) 0;
	background:
		linear-gradient(135deg, rgba(255,255,255,0.03), transparent 45%),
		linear-gradient(135deg, #11152b 0%, #262052 58%, #3a2770 100%);
	color: #fff;
}

.nexus-library-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(2px);
}

.nexus-library-orb-one {
	top: -160px;
	right: -80px;
	width: 430px;
	height: 430px;
	background: rgba(255, 107, 157, 0.18);
}

.nexus-library-orb-two {
	bottom: -190px;
	left: 28%;
	width: 390px;
	height: 390px;
	background: rgba(45, 212, 191, 0.13);
}

.nexus-library-grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(430px, 0.85fr);
	align-items: center;
	gap: clamp(50px, 8vw, 105px);
}

.nexus-library-hero .breadcrumbs,
.nexus-article-detail-hero .breadcrumbs {
	margin-bottom: 30px;
}

.nexus-library-hero .breadcrumbs a,
.nexus-library-hero .breadcrumbs span,
.nexus-article-detail-hero .breadcrumbs a,
.nexus-article-detail-hero .breadcrumbs span {
	color: rgba(255,255,255,0.66);
}

.nexus-pill-dark {
	border-color: rgba(255,255,255,0.18);
	background: rgba(255,255,255,0.08);
	color: #dcd8ff;
}

.nexus-library-copy h1 {
	max-width: 700px;
	margin: 19px 0 24px;
	color: #fff;
	font-size: clamp(3.4rem, 6.8vw, 6.8rem);
	font-weight: 900;
	line-height: 0.93;
	letter-spacing: -0.075em;
}

.nexus-library-copy h1 span {
	background: linear-gradient(90deg, #a89cff, #66e4d2);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.nexus-library-copy > p {
	max-width: 620px;
	color: rgba(255,255,255,0.68);
	font-size: 1.03rem;
}

.nexus-library-stats {
	display: flex;
	gap: 32px;
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid rgba(255,255,255,0.13);
}

.nexus-library-stats > div {
	display: grid;
	gap: 3px;
}

.nexus-library-stats strong {
	color: #fff;
	font-size: 1.6rem;
	font-weight: 850;
	line-height: 1;
}

.nexus-library-stats span {
	color: rgba(255,255,255,0.55);
	font-size: 0.66rem;
	font-weight: 700;
}

.nexus-library-feature {
	position: relative;
}

.nexus-library-feature::before {
	position: absolute;
	right: -22px;
	bottom: -22px;
	width: 110px;
	height: 110px;
	border-radius: 30px;
	background: linear-gradient(135deg, var(--nexus-aqua), #6c5ce7);
	content: "";
	transform: rotate(13deg);
}

.nexus-library-feature > article,
.nexus-library-empty {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,0.18);
	border-radius: 28px;
	background: rgba(255,255,255,0.1);
	box-shadow: 0 35px 90px rgba(5,7,19,0.33);
	backdrop-filter: blur(16px);
}

.nexus-library-feature-media {
	position: relative;
	display: block;
	aspect-ratio: 1.62;
	overflow: hidden;
	background: #25214b;
}

.nexus-library-feature-media img,
.nexus-library-feature-media .image-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nexus-library-feature-media > span {
	position: absolute;
	top: 17px;
	left: 17px;
	padding: 8px 11px;
	border-radius: 999px;
	background: rgba(20,22,43,0.72);
	color: #fff;
	font-size: 0.64rem;
	font-weight: 800;
	backdrop-filter: blur(10px);
}

.nexus-library-feature-body {
	padding: 27px 30px 29px;
}

.nexus-library-feature-body .card-kicker {
	color: #75e5d6;
}

.nexus-library-feature-body h2 {
	margin: 10px 0 11px;
	color: #fff;
	font-size: clamp(1.6rem, 3vw, 2.35rem);
	line-height: 1.1;
}

.nexus-library-feature-body h2 a {
	color: #fff;
}

.nexus-library-feature-body p {
	margin: 0;
	color: rgba(255,255,255,0.63);
	font-size: 0.88rem;
}

.nexus-library-feature .entry-meta {
	color: rgba(255,255,255,0.55);
}

.nexus-library-empty {
	display: flex;
	min-height: 430px;
	flex-direction: column;
	justify-content: center;
	padding: 45px;
}

.nexus-library-empty > span {
	color: #8f80ff;
	font-size: 3.5rem;
}

.nexus-library-empty h2 {
	color: #fff;
}

.nexus-library-empty p {
	color: rgba(255,255,255,0.62);
}

.nexus-article-feed {
	background: #f7f8fc;
}

/* Split detail pages */
.nexus-detail-hero {
	padding: 42px 0 clamp(62px, 8vw, 106px);
	background:
		radial-gradient(circle at 8% 10%, rgba(108,92,231,0.09), transparent 24rem),
		linear-gradient(180deg, #f7f8fc, #f0f2f9);
}

.nexus-detail-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.05fr);
	align-items: center;
	gap: clamp(46px, 7vw, 100px);
	margin-top: 30px;
}

.nexus-detail-kicker {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.nexus-detail-copy h1 {
	margin: 22px 0 20px;
	font-size: clamp(3rem, 6.3vw, 6.3rem);
	font-weight: 900;
	line-height: 0.96;
	letter-spacing: -0.07em;
}

.nexus-detail-subtitle,
.nexus-detail-subtitle p {
	margin: 0;
	color: var(--color-muted);
	font-size: clamp(1rem, 1.5vw, 1.18rem);
	line-height: 1.65;
}

.nexus-detail-byline {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 30px;
}

.nexus-byline-avatar {
	width: 54px;
	height: 54px;
	border: 4px solid #fff;
	border-radius: 17px;
	box-shadow: 0 8px 20px rgba(30,35,71,0.13);
}

.nexus-detail-byline strong {
	display: block;
	margin-bottom: 2px;
	color: var(--color-ink);
	font-size: 0.8rem;
}

.nexus-detail-byline .entry-meta {
	color: #8990a5;
	font-size: 0.66rem;
}

.nexus-detail-cover {
	position: relative;
	margin: 0;
	filter: drop-shadow(0 30px 50px rgba(38,42,86,0.18));
}

.nexus-detail-cover::before {
	position: absolute;
	top: -17px;
	right: -17px;
	z-index: -1;
	width: 105px;
	height: 105px;
	border-radius: 28px;
	background: linear-gradient(135deg, var(--nexus-yellow), var(--nexus-pink));
	content: "";
	transform: rotate(12deg);
}

.nexus-detail-cover img,
.nexus-detail-cover > .image-fallback {
	width: 100%;
	min-height: 470px;
	max-height: 650px;
	border: 8px solid #fff;
	border-radius: 30px;
	object-fit: cover;
}

.nexus-detail-cover figcaption {
	margin-top: 10px;
	color: var(--color-muted);
	font-size: 0.68rem;
}

.nexus-reading-layout {
	display: grid;
	grid-template-columns: 150px minmax(0, 740px) minmax(250px, 300px);
	justify-content: center;
	gap: clamp(34px, 4vw, 58px);
	padding-top: clamp(58px, 8vw, 105px);
	padding-bottom: clamp(65px, 8vw, 110px);
}

.nexus-reading-rail,
.nexus-resource-sidebar,
.nexus-reading-layout > .sidebar {
	align-self: start;
	position: sticky;
	top: 115px;
}

.nexus-reading-rail .share-links {
	display: grid;
	gap: 8px;
	padding: 16px;
	border: 1px solid var(--color-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 35px rgba(30,35,71,0.06);
}

.nexus-reading-rail .share-links > span {
	margin-bottom: 5px;
	color: var(--color-muted);
	font-size: 0.62rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nexus-reading-rail .share-links a,
.nexus-reading-rail .share-links button {
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: 10px;
	background: #f4f5f9;
	color: #5c6379;
	font-size: 0.67rem;
	font-weight: 700;
	text-align: left;
}

.nexus-reading-rail .share-links a:hover,
.nexus-reading-rail .share-links button:hover {
	background: var(--color-accent-pale);
	color: var(--color-accent);
}

.nexus-reading-content {
	min-width: 0;
	font-family: var(--font-body);
	font-size: clamp(1.03rem, 1.3vw, 1.12rem);
	line-height: 1.86;
}

.nexus-reading-content > p:first-child::first-letter {
	float: left;
	margin: 0.12em 0.13em 0 0;
	color: var(--color-accent);
	font-size: 3.6em;
	font-weight: 850;
	line-height: 0.78;
}

.nexus-reading-content h2 {
	margin-top: 2.25em;
	font-size: clamp(1.9rem, 3vw, 2.75rem);
	line-height: 1.1;
}

.nexus-reading-content h3 {
	margin-top: 1.9em;
	font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.nexus-reading-content blockquote {
	position: relative;
	margin: 2.2em 0;
	padding: 28px 30px 28px 36px;
	border: 0;
	border-radius: 20px;
	background: linear-gradient(135deg, #efecff, #e7fbf8);
	color: var(--color-ink);
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 750;
	line-height: 1.45;
}

.nexus-reading-content blockquote::before {
	position: absolute;
	top: 25px;
	left: 0;
	width: 5px;
	height: calc(100% - 50px);
	border-radius: 0 5px 5px 0;
	background: var(--color-accent);
	content: "";
}

.nexus-reading-content img {
	border-radius: 20px;
}

.nexus-reading-content a {
	color: #5746cf;
	text-decoration-color: rgba(87,70,207,0.25);
	text-underline-offset: 3px;
}

.nexus-reading-layout > .sidebar .widget,
.nexus-resource-card {
	margin-bottom: 18px;
	padding: 22px;
	border: 1px solid var(--color-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 35px rgba(30,35,71,0.055);
}

.nexus-reading-layout > .sidebar .widget-title,
.nexus-resource-title {
	margin: 0 0 15px;
	font-size: 0.9rem;
	letter-spacing: -0.015em;
}

.nexus-reading-layout > .sidebar li {
	border-color: #eceef4;
	font-size: 0.75rem;
}

.nexus-reading-layout > .sidebar .search-field {
	border-radius: 11px 0 0 11px;
}

.nexus-article-toc {
	margin-bottom: 18px;
	padding: 18px;
	border: 1px solid var(--color-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 35px rgba(30,35,71,0.055);
}

.nexus-article-toc > span {
	color: var(--color-ink);
	font-size: 0.7rem;
	font-weight: 850;
	letter-spacing: 0;
	text-transform: none;
}

.nexus-article-toc ol {
	display: grid;
	gap: 9px;
	margin: 13px 0 0;
	padding-left: 18px;
}

.nexus-article-toc a {
	color: var(--color-muted);
	font-size: 0.67rem;
	line-height: 1.35;
}

.nexus-resource-cta {
	overflow: hidden;
	background: linear-gradient(145deg, #e9e5ff, #d9faf4);
}

.nexus-resource-cta > span {
	color: var(--color-accent);
	font-size: 2rem;
}

.nexus-resource-cta h2 {
	margin: 8px 0;
	font-size: 1.35rem;
	line-height: 1.15;
}

.nexus-resource-cta p {
	color: #697089;
	font-size: 0.76rem;
	line-height: 1.55;
}

.nexus-resource-cta .button {
	width: 100%;
	margin-top: 7px;
}

.nexus-mini-list {
	display: grid;
	gap: 14px;
}

.nexus-mini-story {
	display: grid;
	grid-template-columns: 54px 1fr;
	align-items: center;
	gap: 11px;
	color: var(--color-ink);
}

.nexus-mini-media {
	display: grid;
	width: 54px;
	height: 54px;
	place-items: center;
	overflow: hidden;
	border-radius: 13px;
	background: var(--color-accent-pale);
	color: var(--color-accent);
}

.nexus-mini-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nexus-mini-story strong {
	display: -webkit-box;
	overflow: hidden;
	font-size: 0.71rem;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.nexus-mini-story small {
	display: block;
	margin-top: 4px;
	color: var(--color-muted);
	font-size: 0.59rem;
}

.nexus-resource-categories {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nexus-resource-categories li + li {
	border-top: 1px solid #eceef4;
}

.nexus-resource-categories a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	color: #555d75;
	font-size: 0.72rem;
	font-weight: 700;
}

.nexus-resource-categories small {
	display: grid;
	width: 24px;
	height: 24px;
	place-items: center;
	border-radius: 8px;
	background: #f2f3f8;
}

.nexus-article-detail-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #12162c, #25204f 60%, #342468);
}

.nexus-detail-orb {
	position: absolute;
	border-radius: 50%;
}

.nexus-detail-orb-one {
	top: -180px;
	right: -100px;
	width: 430px;
	height: 430px;
	background: rgba(255,107,157,0.15);
}

.nexus-detail-orb-two {
	bottom: -220px;
	left: 15%;
	width: 420px;
	height: 420px;
	background: rgba(45,212,191,0.11);
}

.nexus-article-detail-hero .container-wide {
	position: relative;
}

.nexus-article-detail-hero .nexus-detail-copy h1,
.nexus-article-detail-hero .nexus-detail-byline strong {
	color: #fff;
}

.nexus-article-detail-hero .nexus-detail-subtitle,
.nexus-article-detail-hero .nexus-detail-subtitle p {
	color: rgba(255,255,255,0.66);
}

.nexus-article-detail-hero .entry-meta {
	color: rgba(255,255,255,0.48);
}

.nexus-kicker-text {
	color: #78e5d6;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.nexus-cover-chip {
	position: absolute;
	right: 24px;
	bottom: 24px;
	padding: 9px 12px;
	border: 1px solid rgba(255,255,255,0.25);
	border-radius: 999px;
	background: rgba(17,20,42,0.68);
	color: #fff;
	font-size: 0.66rem;
	font-weight: 750;
	backdrop-filter: blur(10px);
}

.nexus-reading-progress {
	z-index: 1200;
	height: 3px;
	background: rgba(108,92,231,0.12);
}

.nexus-reading-progress span {
	background: linear-gradient(90deg, var(--color-accent), var(--nexus-aqua));
}

.nexus-story-footer {
	padding-bottom: clamp(70px, 8vw, 110px);
}

.nexus-author-box {
	border: 1px solid var(--color-border);
	border-radius: 24px;
	background: linear-gradient(145deg, #fff, #f5f3ff);
	box-shadow: 0 20px 55px rgba(30,35,71,0.08);
}

.nexus-author-box .author-avatar {
	border-radius: 20px;
}

.nexus-author-box h2 {
	font-size: 1.65rem;
}

.nexus-post-navigation {
	gap: 16px;
}

.nexus-post-navigation > div {
	padding: 18px;
	border: 1px solid var(--color-border);
	border-radius: 17px;
	background: #fff;
}

.nexus-related-section {
	background: linear-gradient(180deg, #eff1f8, #f7f8fc);
}

.nexus-comments-wrap .comments-area {
	border: 1px solid var(--color-border);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 20px 55px rgba(30,35,71,0.07);
}

/* Generic pages, search, archives and 404 */
.archive-hero-generic,
.simple-page-header,
.page-header,
.search-hero {
	background:
		radial-gradient(circle at 85% 0, rgba(45,212,191,0.15), transparent 23rem),
		linear-gradient(135deg, #1a1e39, #302660);
	color: #fff;
}

.archive-hero-generic h1,
.simple-page-header h1,
.page-header h1,
.search-hero h1 {
	color: #fff;
	font-weight: 900;
	letter-spacing: -0.06em;
}

.page-cover img {
	border: 8px solid #fff;
	border-radius: 28px;
	box-shadow: var(--shadow-soft);
}

.page-content,
.search-page-result,
.no-results {
	border: 1px solid var(--color-border);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(30,35,71,0.07);
}

.error-section {
	background:
		radial-gradient(circle at 75% 20%, rgba(45,212,191,0.15), transparent 24rem),
		linear-gradient(135deg, #171b34, #35266b);
}

.error-orbit span {
	color: #fff;
	font-family: var(--font-display);
}

/* Footer */
.nexus-footer {
	position: relative;
	padding-top: 0;
	background: #111427;
	color: rgba(255,255,255,0.62);
}

.nexus-footer-promo {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 28px;
	margin-bottom: 70px;
	padding-top: 34px;
	padding-bottom: 34px;
	border: 1px solid rgba(255,255,255,0.14);
	border-radius: 26px;
	background:
		radial-gradient(circle at 90% 10%, rgba(45,212,191,0.24), transparent 19rem),
		linear-gradient(135deg, #6c5ce7, #794fc7 68%, #9c4ba0);
	box-shadow: 0 30px 80px rgba(5,7,18,0.3);
	transform: translateY(-36px);
}

.nexus-footer-promo-icon {
	display: grid;
	width: 62px;
	height: 62px;
	place-items: center;
	border: 1px solid rgba(255,255,255,0.22);
	border-radius: 20px;
	background: rgba(255,255,255,0.12);
	color: #fff;
	font-size: 1.7rem;
}

.nexus-footer-promo h2 {
	max-width: 670px;
	margin: 5px 0 0;
	color: #fff;
	font-size: clamp(1.5rem, 3vw, 2.7rem);
	line-height: 1.05;
}

.nexus-footer-promo-actions {
	display: flex;
	gap: 10px;
}

.nexus-footer-grid {
	padding-top: 0;
}

.nexus-footer-wordmark {
	color: #fff;
}

.nexus-footer .footer-brand p,
.nexus-footer a,
.nexus-footer .footer-column a {
	color: rgba(255,255,255,0.62);
}

.nexus-footer a:hover,
.nexus-footer .footer-column a:hover {
	color: #fff;
}

.nexus-footer .widget-title {
	color: #fff;
	font-size: 0.78rem;
	letter-spacing: 0.02em;
	text-transform: none;
}

.nexus-feature-list li {
	position: relative;
	padding-left: 17px;
}

.nexus-feature-list li::before {
	position: absolute;
	top: 0.7em;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--nexus-aqua);
	content: "";
}

.nexus-footer .footer-bottom {
	border-color: rgba(255,255,255,0.1);
}

/* Tablet */
@media (max-width: 1100px) {
	.nexus-header-shell {
		grid-template-columns: 1fr auto auto;
	}

	.nexus-header .menu-toggle {
		order: 2;
		border: 1px solid var(--color-border);
		border-radius: 12px;
		background: #fff;
	}

	.nexus-header-actions {
		order: 3;
	}

	.nexus-navigation {
		position: fixed;
		top: 96px;
		right: 20px;
		left: 20px;
		max-height: calc(100vh - 120px);
		overflow: auto;
		border: 1px solid var(--color-border);
		border-radius: 22px;
		background: #fff;
		box-shadow: 0 30px 80px rgba(20,24,48,0.22);
	}

	.nexus-navigation .primary-menu,
	.nexus-navigation .menu {
		display: grid;
		gap: 3px;
		padding: 10px;
		background: transparent;
	}

	.nexus-navigation .primary-menu a,
	.nexus-navigation .menu a {
		padding: 13px 15px;
		font-size: 0.86rem;
	}

	.nexus-feature-layout {
		grid-template-columns: 1fr;
	}

	.nexus-trending-panel {
		min-height: auto;
	}

	.nexus-trending-list {
		grid-template-columns: 1fr 1fr;
		column-gap: 28px;
	}

	.nexus-library-grid,
	.nexus-detail-hero-grid {
		grid-template-columns: 1fr 1fr;
		gap: 44px;
	}

	.nexus-reading-layout {
		grid-template-columns: minmax(0, 720px) minmax(240px, 290px);
	}

	.nexus-reading-rail {
		display: none;
	}

	.nexus-reading-layout .mobile-share {
		display: block;
	}

	.nexus-footer-promo {
		grid-template-columns: auto 1fr;
	}

	.nexus-footer-promo-actions {
		grid-column: 2;
	}
}

@media (max-width: 900px) {
	.home-hero .hero-grid,
	.nexus-library-grid,
	.nexus-detail-hero-grid {
		grid-template-columns: 1fr;
	}

	.home-hero .hero-copy {
		max-width: 760px;
	}

	.hero-feature {
		max-width: 680px;
	}

	.nexus-page-intro {
		align-items: start;
	}

	.nexus-intro-stat {
		min-width: 140px;
	}

	.nexus-library-copy {
		max-width: 760px;
	}

	.nexus-library-feature {
		max-width: 680px;
	}

	.nexus-detail-copy {
		max-width: 780px;
	}

	.nexus-detail-cover {
		max-width: 760px;
	}

	.nexus-reading-layout {
		grid-template-columns: minmax(0, 1fr);
		max-width: 800px;
	}

	.nexus-resource-sidebar,
	.nexus-reading-layout > .sidebar {
		position: static;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}

	.nexus-reading-layout > .sidebar .widget,
	.nexus-resource-card {
		margin: 0;
	}

	.nexus-resource-sidebar .nexus-resource-cta {
		grid-row: span 2;
	}

	.nexus-footer-grid {
		grid-template-columns: 1.4fr 1fr 1fr;
	}

	.nexus-footer-grid .footer-column:last-child {
		grid-column: 2;
	}
}

/* Mobile app layout */
@media (max-width: 782px) {
	.admin-bar .nexus-header.site-header {
		top: 46px;
	}

	body {
		padding-bottom: 82px;
	}

	.nexus-header.site-header {
		padding-top: 8px;
	}

	.nexus-header-shell {
		min-height: 60px;
		border-radius: 18px;
		padding-right: 12px;
		padding-left: 12px;
	}

	.nexus-brand-mark {
		width: 36px;
		height: 36px;
		flex-basis: 36px;
		border-radius: 11px;
	}

	.nexus-brand-copy small,
	.nexus-create-button,
	.nexus-header .menu-toggle {
		display: none;
	}

	.nexus-header .icon-button {
		width: 40px;
		height: 40px;
	}

	.nexus-navigation {
		display: none !important;
	}

	.nexus-mobile-nav {
		position: fixed;
		right: 12px;
		bottom: 10px;
		left: 12px;
		z-index: 1150;
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 3px;
		padding: 7px;
		border: 1px solid rgba(255,255,255,0.88);
		border-radius: 21px;
		background: rgba(255,255,255,0.92);
		box-shadow: 0 18px 55px rgba(18,22,44,0.24);
		backdrop-filter: blur(20px);
	}

	.nexus-mobile-nav a,
	.nexus-mobile-nav button {
		display: grid;
		min-width: 0;
		min-height: 58px;
		place-items: center;
		align-content: center;
		gap: 3px;
		border: 0;
		border-radius: 15px;
		background: transparent;
		box-shadow: none;
		color: #7a8094;
		font-family: var(--font-body);
		font-size: 0.58rem;
		font-weight: 750;
		letter-spacing: 0;
		text-transform: none;
	}

	.nexus-mobile-nav svg {
		width: 20px;
		height: 20px;
		fill: none;
		stroke: currentColor;
		stroke-linecap: round;
		stroke-linejoin: round;
		stroke-width: 1.8;
	}

	.nexus-mobile-nav .is-active {
		background: var(--color-accent-pale);
		color: var(--color-accent);
	}

	.nexus-search-panel {
		padding: 90px 14px 0;
	}

	.nexus-search-panel .header-search-inner {
		gap: 12px;
		padding: 22px;
		border-radius: 22px;
	}

	.home-hero {
		padding-top: 45px;
	}

	.home-hero .hero-copy h1,
	.nexus-page-intro h1,
	.nexus-library-copy h1,
	.nexus-detail-copy h1 {
		font-size: clamp(2.9rem, 14vw, 4.8rem);
	}

	.hero-story {
		transform: none;
	}

	.hero-feature::before {
		display: none;
	}

	.nexus-page-intro {
		display: grid;
		gap: 22px;
		margin-bottom: 28px;
	}

	.nexus-intro-stat {
		display: inline-flex;
		min-width: 0;
		align-items: center;
		gap: 10px;
		justify-self: start;
		padding: 13px 16px;
	}

	.nexus-intro-stat strong {
		font-size: 1.5rem;
	}

	.nexus-lead-card {
		grid-template-columns: 1fr;
		min-height: 0;
		border-radius: 23px;
	}

	.nexus-lead-media {
		min-height: 260px;
		aspect-ratio: 1.35;
	}

	.nexus-lead-body {
		padding: 25px;
	}

	.nexus-lead-card h2 {
		font-size: clamp(1.9rem, 9vw, 2.8rem);
	}

	.nexus-trending-panel {
		padding: 22px;
		border-radius: 23px;
	}

	.nexus-trending-list {
		grid-template-columns: 1fr;
	}

	.nexus-feed-heading,
	.section-heading {
		display: grid;
		align-items: start;
		gap: 20px;
	}

	.nexus-channel-tabs {
		width: calc(100vw - 40px);
		max-width: none;
	}

	.nexus-library-stats {
		gap: 22px;
	}

	.nexus-library-feature::before,
	.nexus-detail-cover::before {
		display: none;
	}

	.nexus-library-feature > article {
		border-radius: 23px;
	}

	.nexus-detail-hero {
		padding-top: 24px;
	}

	.nexus-detail-hero-grid {
		gap: 38px;
	}

	.nexus-detail-cover img,
	.nexus-detail-cover > .image-fallback {
		min-height: 280px;
		border-width: 5px;
		border-radius: 23px;
	}

	.nexus-reading-layout {
		padding-top: 58px;
	}

	.nexus-reading-content {
		font-size: 1rem;
	}

	.nexus-resource-sidebar,
	.nexus-reading-layout > .sidebar {
		grid-template-columns: 1fr;
	}

	.nexus-resource-sidebar .nexus-resource-cta {
		grid-row: auto;
	}

	.nexus-footer-promo {
		grid-template-columns: 1fr;
		gap: 18px;
		margin-right: 14px;
		margin-left: 14px;
		padding: 26px;
		border-radius: 23px;
	}

	.nexus-footer-promo-icon {
		width: 50px;
		height: 50px;
	}

	.nexus-footer-promo-actions {
		grid-column: 1;
		flex-wrap: wrap;
	}

	.nexus-footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.nexus-footer-grid .footer-brand,
	.nexus-footer-grid .footer-column:last-child {
		grid-column: 1 / -1;
	}

	.footer-bottom {
		margin-bottom: 0;
	}
}

@media (max-width: 560px) {
	.nexus-brand-copy strong {
		max-width: 140px;
		overflow: hidden;
		font-size: 0.9rem;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.home-hero .hero-actions,
	.nexus-footer-promo-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.home-hero .hero-actions .button,
	.nexus-footer-promo-actions .button {
		width: 100%;
	}

	.home-hero .hero-stats {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}

	.home-hero .hero-stats strong {
		font-size: 1.15rem;
	}

	.nexus-lead-topline,
	.nexus-lead-footer {
		align-items: start;
	}

	.nexus-lead-topline {
		flex-direction: column;
		gap: 8px;
	}

	.nexus-library-stats {
		justify-content: space-between;
		gap: 10px;
	}

	.nexus-library-stats strong {
		font-size: 1.35rem;
	}

	.nexus-library-feature-body {
		padding: 23px;
	}

	.nexus-detail-byline .entry-meta span:nth-child(n+3) {
		display: none;
	}

	.content-card,
	.nexus-author-box,
	.nexus-comments-wrap .comments-area {
		border-radius: 19px;
	}

	.nexus-footer-grid {
		grid-template-columns: 1fr;
	}

	.nexus-footer-grid .footer-column,
	.nexus-footer-grid .footer-column:last-child {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.content-card,
	.content-card .card-media img,
	.nexus-round-link {
		transition: none;
	}
}

@media print {
	.nexus-header,
	.nexus-footer,
	.nexus-mobile-nav,
	.nexus-reading-rail,
	.nexus-resource-sidebar,
	.nexus-reading-progress {
		display: none !important;
	}

	body {
		padding: 0;
		background: #fff;
	}

	.nexus-reading-layout {
		display: block;
		padding: 0;
	}
}
