/**
 * Publishing Brand manifesto — Phase 5.14.
 * Scoped to .nds-pb / #nds-story only.
 */

.nds-pb {
	--pb-ink: #e8f4f6;
	--pb-muted: rgba(210, 230, 236, 0.78);
	--pb-soft: rgba(180, 210, 220, 0.62);
	--pb-accent: #7ec8d0;
	--pb-accent-strong: #9ad8de;
	--pb-panel: #0a2a34;
	--pb-panel-mid: #0d3642;
	--pb-panel-deep: #071c24;
	--pb-line: rgba(126, 200, 208, 0.22);
	--pb-radius: 30px;
	--pb-ease: cubic-bezier(0.22, 1, 0.36, 1);
	margin: 2.75rem 0 3rem;
	padding: 0;
	scroll-margin-top: calc(var(--nds-header-h, 5.25rem) + 0.75rem);
	overflow-x: clip;
}

.nds-pb__panel {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 500px;
	border-radius: var(--pb-radius);
	border: 1px solid var(--pb-line);
	background:
		radial-gradient(ellipse 52% 48% at 78% 42%, rgba(40, 140, 155, 0.28), transparent 62%),
		radial-gradient(ellipse 40% 36% at 12% 18%, rgba(55, 150, 165, 0.16), transparent 58%),
		radial-gradient(ellipse 45% 40% at 40% 100%, rgba(20, 90, 110, 0.22), transparent 60%),
		linear-gradient(155deg, #0c3340 0%, #0a2a34 42%, #071c24 100%);
	box-shadow:
		0 28px 64px rgba(4, 20, 28, 0.28),
		0 8px 24px rgba(4, 20, 28, 0.16),
		inset 0 1px 0 rgba(180, 220, 230, 0.1);
	padding: clamp(2rem, 3.6vw, 3.15rem) clamp(1.5rem, 3.2vw, 3rem);
	color: var(--pb-ink);
	max-width: 100%;
}

.nds-pb__glow {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
	filter: blur(42px);
}

.nds-pb__glow--a {
	width: min(420px, 55%);
	height: 280px;
	top: -12%;
	right: 8%;
	background: rgba(70, 170, 185, 0.28);
}

.nds-pb__glow--b {
	width: min(360px, 48%);
	height: 240px;
	left: -6%;
	bottom: -10%;
	background: rgba(30, 110, 130, 0.22);
}

.nds-pb__grid {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.07;
	background-image: radial-gradient(rgba(200, 230, 236, 0.95) 0.7px, transparent 0.7px);
	background-size: 18px 18px;
	mask-image: radial-gradient(75% 70% at 70% 45%, #000 20%, transparent 78%);
}

.nds-pb__layout {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
	gap: clamp(1.75rem, 3.2vw, 3rem);
	align-items: center;
	min-width: 0;
}

/* —— Left content —— */
.nds-pb__content {
	min-width: 0;
	max-width: 36rem;
}

.nds-pb__eyebrow {
	margin: 0 0 0.75rem;
	font-family: var(--nds-font-body, "Figtree", sans-serif);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--pb-accent);
}

.nds-pb__title {
	margin: 0 0 1.1rem;
	font-family: var(--nds-font-display, "Source Serif 4", Georgia, serif);
	font-size: clamp(2rem, 3.6vw, 3.4rem);
	font-weight: 650;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: #f4fbfc;
	text-wrap: balance;
}

.nds-pb__copy {
	max-width: 32.5rem;
}

.nds-pb__copy p {
	margin: 0 0 0.85rem;
	font-family: var(--nds-font-body, "Figtree", sans-serif);
	font-size: 1.02rem;
	line-height: 1.62;
	color: var(--pb-muted);
}

.nds-pb__copy p:last-child {
	margin-bottom: 0;
}

/* Principles — compact rows, not oversized cards */
.nds-pb__principles {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 1.45rem 0 0;
	padding: 0;
	list-style: none;
}

.nds-pb__principle {
	display: flex;
	align-items: flex-start;
	gap: 0.8rem;
	padding: 0.7rem 0.75rem;
	border-radius: 12px;
	border: 1px solid transparent;
	background: transparent;
	transition:
		background 240ms var(--pb-ease),
		border-color 240ms var(--pb-ease);
}

.nds-pb__principle:hover,
.nds-pb__principle:focus-within {
	background: rgba(255, 255, 255, 0.045);
	border-color: rgba(126, 200, 208, 0.16);
}

.nds-pb__principle-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.15rem;
	height: 2.15rem;
	margin-top: 0.05rem;
	border-radius: 9px;
	background: rgba(126, 200, 208, 0.12);
	border: 1px solid rgba(126, 200, 208, 0.2);
	color: var(--pb-accent-strong);
}

.nds-pb__ico {
	width: 1.05rem;
	height: 1.05rem;
}

.nds-pb__principle-body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.nds-pb__principle-title {
	font-family: var(--nds-font-display, "Source Serif 4", Georgia, serif);
	font-size: 1.05rem;
	font-weight: 650;
	line-height: 1.25;
	color: #f2fafb;
}

.nds-pb__principle-text {
	font-family: var(--nds-font-body, "Figtree", sans-serif);
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--pb-soft);
}

/* CTAs */
.nds-pb__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.7rem 0.85rem;
	margin-top: 1.55rem;
}

.nds-pb__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.75rem;
	padding: 0.7rem 1.2rem;
	border-radius: 999px;
	font-family: var(--nds-font-body, "Figtree", sans-serif);
	font-size: 0.92rem;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	transition:
		transform 220ms var(--pb-ease),
		background 220ms var(--pb-ease),
		border-color 220ms var(--pb-ease),
		color 220ms var(--pb-ease),
		box-shadow 220ms var(--pb-ease);
}

.nds-pb__cta:focus-visible,
.nds-pb__text-link:focus-visible {
	outline: 2px solid var(--pb-accent-strong);
	outline-offset: 3px;
}

.nds-pb__cta--primary {
	background: linear-gradient(145deg, #e8f6f8, #d0ecef);
	color: #0a2a34;
	box-shadow: 0 10px 24px rgba(4, 24, 32, 0.22);
}

.nds-pb__cta--primary:hover,
.nds-pb__cta--primary:focus-visible {
	background: #fff;
	color: #071c24;
	transform: translateY(-1px);
}

.nds-pb__cta--secondary {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(180, 220, 230, 0.28);
	color: #eef8fa;
}

.nds-pb__cta--secondary:hover,
.nds-pb__cta--secondary:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(180, 220, 230, 0.45);
}

.nds-pb__cta-arrow {
	display: inline-block;
	transition: transform 220ms var(--pb-ease);
}

.nds-pb__cta:hover .nds-pb__cta-arrow,
.nds-pb__cta:focus-visible .nds-pb__cta-arrow,
.nds-pb__text-link:hover span[aria-hidden],
.nds-pb__text-link:focus-visible span[aria-hidden] {
	transform: translateX(3px);
}

.nds-pb__text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	margin-left: 0.15rem;
	padding: 0.35rem 0.15rem;
	font-family: var(--nds-font-body, "Figtree", sans-serif);
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--pb-accent);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 220ms var(--pb-ease), border-color 220ms var(--pb-ease);
}

.nds-pb__text-link span[aria-hidden] {
	display: inline-block;
	transition: transform 220ms var(--pb-ease);
}

.nds-pb__text-link:hover,
.nds-pb__text-link:focus-visible {
	color: var(--pb-accent-strong);
	border-bottom-color: rgba(154, 216, 222, 0.45);
}

/* —— Right visual stage —— */
.nds-pb__visual {
	position: relative;
	min-width: 0;
}

.nds-pb__stage {
	position: relative;
	min-height: 28rem;
	height: 100%;
	border-radius: 22px;
	overflow: hidden;
	background:
		radial-gradient(ellipse 55% 50% at 52% 48%, rgba(90, 180, 195, 0.18), transparent 68%),
		linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
	border: 1px solid rgba(160, 210, 220, 0.14);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nds-pb__stage-glow {
	position: absolute;
	inset: 22% 18% auto auto;
	width: 55%;
	height: 50%;
	background: radial-gradient(circle, rgba(110, 200, 210, 0.28), transparent 70%);
	pointer-events: none;
	filter: blur(8px);
}

.nds-pb__meta {
	position: absolute;
	z-index: 6;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	border: 1px solid rgba(180, 220, 230, 0.28);
	background: rgba(8, 30, 38, 0.72);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	font-family: var(--nds-font-body, "Figtree", sans-serif);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(220, 240, 244, 0.92);
	box-shadow: 0 8px 20px rgba(4, 16, 24, 0.25);
	transition:
		background 240ms var(--pb-ease),
		border-color 240ms var(--pb-ease),
		color 240ms var(--pb-ease);
}

.nds-pb__stage:hover .nds-pb__meta,
.nds-pb__meta:hover {
	background: rgba(12, 44, 54, 0.88);
	border-color: rgba(154, 216, 222, 0.42);
	color: #fff;
}

.nds-pb__meta--edition {
	top: 1.15rem;
	left: 1.1rem;
}

.nds-pb__meta--subject {
	top: 1.15rem;
	right: 1.1rem;
}

.nds-pb__meta--digital {
	bottom: 5.6rem;
	left: 1rem;
}

.nds-pb__meta--library {
	bottom: 5.6rem;
	right: 1rem;
}

/* Cover figures */
.nds-pb__book {
	position: absolute;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	z-index: 2;
	transition: transform 320ms var(--pb-ease);
}

.nds-pb-cover,
.nds-pb-cover--ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.nds-pb-cover--ph {
	background: linear-gradient(160deg, #1a4a58, #0d303c);
}

.nds-pb__book--lg,
.nds-pb__book--md,
.nds-pb__book--sm {
	overflow: hidden;
	border-radius: 8px;
	box-shadow:
		0 18px 36px rgba(2, 12, 18, 0.45),
		0 4px 10px rgba(2, 12, 18, 0.28);
	background: #0a2030;
}

.nds-pb__book--lg {
	width: min(42%, 11.5rem);
	aspect-ratio: 3 / 4.2;
	z-index: 4;
}

.nds-pb__book--md {
	width: min(30%, 8.2rem);
	aspect-ratio: 3 / 4.2;
	z-index: 3;
}

.nds-pb__book--sm {
	width: min(20%, 5.4rem);
	aspect-ratio: 3 / 4.2;
	z-index: 2;
}

.nds-pb__book--primary {
	left: 50%;
	top: 46%;
	transform: translate(-50%, -52%);
}

.nds-pb__book--m1 {
	left: 12%;
	top: 38%;
	transform: translateY(-50%) rotate(-8deg);
}

.nds-pb__book--m2 {
	right: 10%;
	top: 40%;
	transform: translateY(-50%) rotate(9deg);
}

.nds-pb__book--s1 {
	left: 22%;
	top: 18%;
	transform: rotate(-14deg);
}

.nds-pb__book--s2 {
	right: 20%;
	top: 16%;
	transform: rotate(12deg);
}

.nds-pb__book--s3 {
	left: 8%;
	bottom: 22%;
	transform: rotate(-6deg);
}

.nds-pb__stage:hover .nds-pb__book--primary {
	transform: translate(-50%, calc(-52% - 6px));
}

.nds-pb__stage:hover .nds-pb__book--m1 {
	transform: translate(-6px, -50%) rotate(-10deg);
}

.nds-pb__stage:hover .nds-pb__book--m2 {
	transform: translate(6px, -50%) rotate(11deg);
}

.nds-pb__stage:hover .nds-pb__book--s1 {
	transform: translate(-4px, -3px) rotate(-16deg);
}

.nds-pb__stage:hover .nds-pb__book--s2 {
	transform: translate(4px, -3px) rotate(14deg);
}

.nds-pb__stage:hover .nds-pb__book--s3 {
	transform: translate(-3px, 2px) rotate(-8deg);
}

.nds-pb__book-cap,
.nds-pb__book-stack {
	position: absolute;
	left: 0.4rem;
	right: 0.4rem;
	bottom: 0.4rem;
	z-index: 2;
	pointer-events: none;
}

.nds-pb__book-cap {
	padding: 0.28rem 0.4rem;
	border-radius: 6px;
	background: rgba(6, 22, 30, 0.82);
	font-family: var(--nds-font-body, "Figtree", sans-serif);
	font-size: 0.58rem;
	font-weight: 650;
	letter-spacing: 0.04em;
	line-height: 1.25;
	color: rgba(230, 244, 248, 0.95);
	text-align: center;
}

.nds-pb__book-stack {
	display: flex;
	flex-wrap: wrap;
	gap: 0.28rem;
	justify-content: center;
}

.nds-pb__chip {
	display: inline-block;
	padding: 0.22rem 0.45rem;
	border-radius: 999px;
	background: rgba(6, 22, 30, 0.88);
	border: 1px solid rgba(160, 210, 220, 0.28);
	font-family: var(--nds-font-body, "Figtree", sans-serif);
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	color: #e8f6f8;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nds-pb__chip--edition {
	background: rgba(26, 100, 112, 0.92);
}

.nds-pb__chip--type {
	background: rgba(20, 70, 95, 0.92);
}

/* My Library card */
.nds-pb__library-card {
	position: absolute;
	z-index: 5;
	left: 50%;
	bottom: 1.1rem;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 0.65rem;
	width: min(92%, 16.5rem);
	padding: 0.65rem 0.8rem;
	border-radius: 14px;
	border: 1px solid rgba(160, 210, 220, 0.24);
	background: rgba(8, 28, 36, 0.88);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 14px 28px rgba(2, 12, 18, 0.35);
}

.nds-pb__library-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	border-radius: 9px;
	background: rgba(126, 200, 208, 0.14);
	color: var(--pb-accent-strong);
}

.nds-pb__library-copy {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.nds-pb__library-kicker {
	font-family: var(--nds-font-body, "Figtree", sans-serif);
	font-size: 0.78rem;
	font-weight: 700;
	color: #f2fafb;
}

.nds-pb__library-line {
	font-family: var(--nds-font-body, "Figtree", sans-serif);
	font-size: 0.7rem;
	line-height: 1.35;
	color: var(--pb-soft);
}

.nds-pb__brand-mark {
	position: absolute;
	z-index: 5;
	top: 3.4rem;
	left: 50%;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.55rem 0.3rem 0.35rem;
	border-radius: 999px;
	background: rgba(6, 22, 30, 0.55);
	border: 1px solid rgba(160, 210, 220, 0.16);
	opacity: 0.9;
}

.nds-pb__brand-mark svg,
.nds-pb__brand-mark .nds-brand-svg {
	width: 1.15rem;
	height: 1.15rem;
}

.nds-pb__brand-name {
	font-family: var(--nds-font-brand, "Figtree", sans-serif);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(230, 244, 248, 0.88);
}

/* Workflow */
.nds-pb__workflow {
	position: absolute;
	z-index: 5;
	left: 50%;
	bottom: 4.85rem;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 0;
	padding: 0.35rem 0.55rem;
	list-style: none;
	width: min(94%, 22rem);
	border-radius: 999px;
	background: rgba(6, 22, 30, 0.45);
	border: 1px solid rgba(160, 210, 220, 0.12);
}

.nds-pb__workflow li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.3rem;
	flex: 1 1 0;
	justify-content: center;
	min-width: 0;
	padding: 0.15rem 0.35rem;
	font-family: var(--nds-font-body, "Figtree", sans-serif);
	font-size: 0.58rem;
	font-weight: 600;
	line-height: 1.2;
	color: rgba(210, 230, 236, 0.78);
	text-align: center;
}

.nds-pb__workflow li:not(:last-child)::after {
	content: "";
	position: absolute;
	right: -0.15rem;
	top: 50%;
	width: 0.55rem;
	height: 1px;
	background: rgba(160, 210, 220, 0.35);
	transform: translateY(-50%);
}

.nds-pb__wf-ico {
	display: inline-flex;
	color: var(--pb-accent);
	flex-shrink: 0;
}

.nds-pb__wf-ico .nds-icon {
	width: 0.75rem;
	height: 0.75rem;
}

.nds-pb__workflow li span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.nds-pb__layout,
.nds-pb__visual,
.nds-pb__content {
	max-width: 100%;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
	.nds-pb__layout {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.nds-pb__content {
		max-width: none;
	}

	.nds-pb__stage {
		min-height: 26rem;
	}

	.nds-pb__meta--digital {
		bottom: 5.4rem;
	}

	.nds-pb__meta--library {
		bottom: 5.4rem;
	}
}

@media (max-width: 768px) {
	.nds-pb {
		margin: 2rem 0 2.35rem;
	}

	.nds-pb__panel {
		min-height: 0;
		padding: 1.65rem 1.15rem 1.5rem;
		border-radius: 24px;
	}

	.nds-pb__title {
		font-size: clamp(1.85rem, 7vw, 2.35rem);
	}

	.nds-pb__copy {
		max-width: none;
	}

	.nds-pb__copy p {
		font-size: 0.98rem;
	}

	.nds-pb__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.nds-pb__cta {
		justify-content: center;
		width: 100%;
	}

	.nds-pb__text-link {
		justify-content: center;
		margin-left: 0;
	}

	.nds-pb__stage {
		min-height: 24rem;
	}

	.nds-pb__book--lg {
		width: min(46%, 10rem);
	}

	.nds-pb__book--md {
		width: min(28%, 6.8rem);
	}

	.nds-pb__book--sm {
		width: min(18%, 4.6rem);
	}

	.nds-pb__meta--edition,
	.nds-pb__meta--subject {
		top: 0.75rem;
	}

	.nds-pb__meta--edition {
		left: 0.7rem;
	}

	.nds-pb__meta--subject {
		right: 0.7rem;
	}

	.nds-pb__meta--digital,
	.nds-pb__meta--library {
		bottom: 5.1rem;
		font-size: 0.56rem;
		padding: 0.28rem 0.5rem;
	}

	.nds-pb__workflow {
		bottom: 4.55rem;
		width: min(96%, 20rem);
	}

	.nds-pb__workflow li span:last-child {
		font-size: 0.52rem;
	}

	.nds-pb__brand-mark {
		top: 2.85rem;
	}
}

@media (max-width: 400px) {
	.nds-pb__stage {
		min-height: 22.5rem;
	}

	.nds-pb__meta--digital {
		left: 0.55rem;
		bottom: auto;
		top: auto;
		bottom: 8.6rem;
	}

	.nds-pb__meta--library {
		right: 0.55rem;
		bottom: 8.6rem;
	}

	.nds-pb__workflow {
		flex-wrap: wrap;
		border-radius: 14px;
		bottom: 4.35rem;
		gap: 0.15rem 0;
	}

	.nds-pb__workflow li {
		flex: 1 1 100%;
	}

	.nds-pb__workflow li:not(:last-child)::after {
		display: none;
	}

	.nds-pb__book--s3 {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nds-pb__principle,
	.nds-pb__cta,
	.nds-pb__cta-arrow,
	.nds-pb__text-link,
	.nds-pb__text-link span[aria-hidden],
	.nds-pb__book,
	.nds-pb__meta {
		transition: none;
	}

	.nds-pb__stage:hover .nds-pb__book--primary,
	.nds-pb__stage:hover .nds-pb__book--m1,
	.nds-pb__stage:hover .nds-pb__book--m2,
	.nds-pb__stage:hover .nds-pb__book--s1,
	.nds-pb__stage:hover .nds-pb__book--s2,
	.nds-pb__stage:hover .nds-pb__book--s3 {
		transform: none;
	}

	.nds-pb__book--primary {
		transform: translate(-50%, -52%);
	}

	.nds-pb__book--m1 {
		transform: translateY(-50%) rotate(-8deg);
	}

	.nds-pb__book--m2 {
		transform: translateY(-50%) rotate(9deg);
	}

	.nds-pb__book--s1 {
		transform: rotate(-14deg);
	}

	.nds-pb__book--s2 {
		transform: rotate(12deg);
	}

	.nds-pb__book--s3 {
		transform: rotate(-6deg);
	}

	.nds-pb__cta:hover,
	.nds-pb__cta:focus-visible {
		transform: none;
	}
}
