/* ---------------------------------------------------------------------------
 * Northeast Pulse — Component library
 *
 * Every module shared across the eight design systems. Systems override
 * flavour in systems/<slug>.css.
 * ------------------------------------------------------------------------- */

/* 1. Cards ------------------------------------------------------------------- */
.np-card {
	background: var(--np-color-surface, #fff);
	border: 1px solid var(--np-color-border, #d6d0c2);
	border-radius: var(--np-radius-md, 10px);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--np-shadow-sm, none);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.np-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--np-shadow-md, none);
}

.np-card__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.np-card__body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}

.np-card__cat {
	font-family: var(--np-font-mono, monospace);
	font-size: var(--np-size-xs, 0.75rem);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--np-color-primary, #2e6b4f);
}

.np-card__title {
	font-size: var(--np-size-lg, 1.25rem);
	margin: 0;
}

.np-card__title a {
	color: var(--np-color-ink, #1c231f);
}

.np-card__excerpt {
	font-size: var(--np-size-sm, 0.875rem);
	color: var(--np-color-muted, #6f6f66);
	margin: 0;
}

.np-card__meta {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	font-size: var(--np-size-xs, 0.75rem);
	color: var(--np-color-muted, #6f6f66);
	margin-top: auto;
}

.np-card__dot {
	opacity: 0.5;
}

.np-card--sm .np-card__title {
	font-size: var(--np-size-md, 1rem);
}

/* 2. Meta row ----------------------------------------------------------------- */
.np-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	font-size: var(--np-size-xs, 0.75rem);
	color: var(--np-color-muted, #6f6f66);
}

/* 2b. Pills (used by Airy single + Cards archive treatments) ------------------ */
.np-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.85rem;
	border-radius: var(--np-radius-full, 9999px);
	font-size: var(--np-size-xs, 0.78rem);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.np-pill--soft {
	background: color-mix(in srgb, var(--np-color-primary, #2e6b4f) 12%, transparent);
	color: var(--np-color-primary, #2e6b4f);
}

/* 2c. Author hero (author archives, all systems) ------------------------------ */
.np-author-hero {
	padding: 3rem 1.5rem 2rem;
	background: color-mix(in srgb, var(--np-color-primary, #2e6b4f) 6%, transparent);
	border-bottom: 1px solid var(--np-color-border, #d6d0c2);
}

.np-author-hero__inner {
	max-width: 960px;
	margin-inline: auto;
	display: flex;
	gap: 2rem;
	align-items: center;
}

.np-author-hero__avatar {
	border-radius: 50%;
	box-shadow: var(--np-shadow-md, none);
	flex-shrink: 0;
}

.np-author-hero__name {
	font-size: clamp(1.7rem, 3.6vw, 2.5rem);
	line-height: 1.1;
	margin: 0.25rem 0 0.5rem;
}

.np-author-hero__bio {
	color: var(--np-color-muted, #6f6f66);
	font-size: var(--np-size-md, 1rem);
	line-height: 1.6;
	max-width: 62ch;
	margin: 0;
}

.np-author-hero__meta {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
	margin-top: 1rem;
	font-size: var(--np-size-sm, 0.875rem);
	color: var(--np-color-muted, #6f6f66);
}

.np-author-hero__meta a {
	font-weight: 600;
	color: var(--np-color-primary, #2e6b4f);
}

@media (max-width: 640px) {
	.np-author-hero__inner {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}

	.np-author-hero__meta {
		justify-content: center;
	}
}


/* 3. Hero ----------------------------------------------------------------------- */
.np-hero {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: var(--np-space-lg, 2.5rem);
	align-items: start;
}

.np-hero__media {
	display: block;
	overflow: hidden;
	border-radius: var(--np-radius-lg, 22px);
	position: relative;
}

.np-hero__media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.np-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.72) 100%);
}

.np-hero__body {
	padding: var(--np-space-md, 1.5rem) 0 0;
}

.np-hero--cover {
	grid-template-columns: 1fr;
}

.np-hero--cover .np-hero__media {
	border-radius: var(--np-radius-lg, 22px);
}

.np-hero--cover .np-hero__body {
	padding: 0 var(--np-space-md, 1.5rem) 0;
	margin-top: calc(-0.55em);
	position: relative;
	z-index: 2;
}

.np-hero--cover .np-hero__title {
	font-size: clamp(2.2rem, 5vw, 4.5rem);
	line-height: 0.96;
	letter-spacing: -0.02em;
	margin: 0;
	text-shadow: 0 2px 30px color-mix(in srgb, var(--np-color-base, #f7f5f0) 70%, transparent);
}

.np-hero--cover .np-hero__media {
	border-radius: var(--np-radius-lg, 22px);
}

/* Cinematic: full-bleed lead with a deep scrim and absolute body. */
.np-hero--cinematic {
	position: relative;
	grid-template-columns: 1fr;
	gap: 0;
	padding: 0;
}

.np-hero--cinematic .np-hero__media {
	border-radius: 0;
	aspect-ratio: 21 / 9;
}

.np-hero--cinematic .np-hero__media img {
	aspect-ratio: 21 / 9;
}

.np-hero--cinematic .np-hero__body {
	position: absolute;
	inset: auto 0 0 0;
	padding: var(--np-space-2xl, 5rem) 10vw var(--np-space-lg, 2.5rem);
	color: #fff;
}

.np-hero--cinematic .np-hero__title {
	font-size: clamp(2rem, 4.5vw, 3.75rem);
	max-width: 18ch;
}

.np-hero--cinematic .np-hero__title a,
.np-hero--cinematic .np-hero__dek,
.np-hero--cinematic .np-meta {
	color: #fff;
}

.np-hero--cinematic .np-hero__dek {
	color: rgba(255, 255, 255, 0.85);
}

/* Typographic: big headline over a modest media, rail as mini-cards. */
.np-hero--typographic {
	grid-template-columns: 1fr;
	gap: var(--np-space-md, 1.5rem);
}

.np-hero--typographic .np-hero__media img {
	aspect-ratio: 16 / 7;
}

.np-hero--typographic .np-hero__body {
	padding: 0;
}

.np-hero--typographic .np-hero__title {
	font-size: clamp(2rem, 4.5vw, 3.5rem);
	line-height: 1.02;
	max-width: 22ch;
}

.np-hero--typographic .np-hero__rail {
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 0.5rem;
}

.np-hero--typographic .np-hero__item {
	border: 1px solid var(--np-color-border, #d6d0c2);
	border-radius: var(--np-radius-md, 10px);
	padding: 1rem;
}

/* Duo: portrait media beside the text (editorial). */
.np-hero--duo {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	align-items: center;
	gap: var(--np-space-xl, 3.5rem);
}

.np-hero--duo .np-hero__media img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--np-radius-md, 10px);
}

.np-hero--duo .np-hero__body {
	padding: 0;
}

.np-hero--duo .np-hero__title {
	font-size: clamp(1.8rem, 3.4vw, 2.9rem);
}

/* Quiet: centered, generous whitespace, 3:2 media. */
.np-hero--quiet {
	grid-template-columns: 1fr;
	gap: var(--np-space-lg, 2.5rem);
	text-align: center;
	max-width: 860px;
}

.np-hero--quiet .np-hero__media img {
	aspect-ratio: 3 / 2;
	border-radius: var(--np-radius-lg, 22px);
	box-shadow: var(--np-shadow-md, none);
}

.np-hero--quiet .np-hero__body {
	padding: 0;
}

.np-hero--quiet .np-hero__title {
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 400;
	line-height: 1.12;
	max-width: 24ch;
	margin-inline: auto;
}

.np-hero--quiet .np-meta {
	justify-content: center;
}

.np-hero__title {
	font-size: var(--np-size-3xl, 2.25rem);
	margin-bottom: 0.5rem;
}

.np-hero__title a {
	color: var(--np-color-ink, #1c231f);
}

.np-hero__dek {
	font-size: var(--np-size-lg, 1.25rem);
	color: var(--np-color-muted, #6f6f66);
}

.np-hero__rail {
	display: grid;
	gap: 1rem;
}

.np-hero__item {
	display: flex;
	gap: 1rem;
	align-items: center;
	border-bottom: 1px solid var(--np-color-border, #d6d0c2);
	padding-bottom: 1rem;
}

.np-hero__item-media {
	flex-shrink: 0;
}

.np-hero__item-media img {
	width: 140px;
	height: 92px;
	object-fit: cover;
	border-radius: var(--np-radius-sm, 8px);
}

.np-hero__item-title {
	font-size: var(--np-size-md, 1rem);
	margin: 0 0 0.25rem;
}

.np-hero__item-title a {
	color: var(--np-color-ink, #1c231f);
}

/* 4. Trending ------------------------------------------------------------------- */
.np-trending__indicator {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--np-color-accent, #c05621);
	animation: np-pulse 1.6s ease-in-out infinite;
}

.np-trending__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem;
}

.np-trending__item {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.np-trending__rank {
	font-family: var(--np-font-display, Georgia, serif);
	font-size: var(--np-size-4xl, 2.75rem);
	font-weight: 800;
	line-height: 1;
	color: var(--np-color-primary, #2e6b4f);
	flex-shrink: 0;
}

.np-trending__title {
	font-size: var(--np-size-md, 1rem);
	margin: 0 0 0.25rem;
}

.np-trending__title a {
	color: var(--np-color-ink, #1c231f);
}

/* 5. Mosaic ---------------------------------------------------------------------- */
.np-mosaic__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 1.5rem;
}

.np-mosaic__cell {
	position: relative;
	border-radius: var(--np-radius-md, 10px);
	overflow: hidden;
}

.np-mosaic__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.np-mosaic__cell:hover .np-mosaic__media img {
	transform: scale(1.04);
}

.np-mosaic__body {
	padding: 0.75rem 0;
}

.np-mosaic__title {
	font-size: var(--np-size-lg, 1.25rem);
	margin: 0;
}

.np-mosaic__title a {
	color: var(--np-color-ink, #1c231f);
}

/* 6. Latest grid ------------------------------------------------------------------- */
.np-latest__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.np-latest__grid--list {
	grid-template-columns: 1fr;
	max-width: 860px;
	margin: 0 auto;
}

.np-latest__grid--list .np-card {
	flex-direction: row;
}

.np-latest__grid--list .np-card__media {
	width: 280px;
	flex-shrink: 0;
}

.np-latest__grid--list .np-card__media img {
	aspect-ratio: 16 / 10;
	height: auto;
}

.np-latest__compact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 0.75rem 2rem;
}

.np-latest__compact-item {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: baseline;
	border-bottom: 1px solid var(--np-color-border, #d6d0c2);
	padding-bottom: 0.5rem;
}

.np-latest__compact-item a {
	color: var(--np-color-ink, #1c231f);
	font-weight: 600;
}

.np-latest__compact-meta {
	font-size: var(--np-size-xs, 0.75rem);
	color: var(--np-color-muted, #6f6f66);
	white-space: nowrap;
}

/* 7. Photo essay --------------------------------------------------------------------- */
.np-photo-essay__lead {
	position: relative;
	border-radius: var(--np-radius-lg, 22px);
	overflow: hidden;
}

.np-photo-essay__media img {
	width: 100%;
	aspect-ratio: 21 / 9;
	object-fit: cover;
}

.np-photo-essay__body {
	padding: var(--np-space-md, 1.5rem) 0 0;
}

.np-photo-essay__title {
	font-size: var(--np-size-3xl, 2.25rem);
	margin: 0;
}

.np-photo-essay__title a {
	color: var(--np-color-ink, #1c231f);
}

.np-photo-essay__dek {
	color: var(--np-color-muted, #6f6f66);
}

/* 8. Video ------------------------------------------------------------------------------ */
.np-video__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem;
}

.np-video__media {
	position: relative;
	display: block;
	border-radius: var(--np-radius-md, 10px);
	overflow: hidden;
}

.np-video__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.np-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	padding-left: 4px;
}

.np-video__dur {
	position: absolute;
	bottom: 0.5rem;
	right: 0.5rem;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: var(--np-size-xs, 0.75rem);
	padding: 0.25rem 0.5rem;
	border-radius: var(--np-radius-sm, 6px);
	font-family: var(--np-font-mono, monospace);
}

.np-video__title {
	font-size: var(--np-size-md, 1rem);
	margin: 0.5rem 0 0;
}

.np-video__title a {
	color: var(--np-color-ink, #1c231f);
}

/* 9. Live ---------------------------------------------------------------------------------- */
.np-live__dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--np-color-error, #b3402a);
	margin-right: 0.5rem;
	animation: np-pulse 1.4s ease-in-out infinite;
	vertical-align: middle;
}

.np-live__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.np-live__item {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	background: var(--np-color-surface, #fff);
	border-left: 3px solid var(--np-color-error, #b3402a);
	padding: 1rem 1.25rem;
	border-radius: var(--np-radius-sm, 6px);
	box-shadow: var(--np-shadow-sm, none);
}

.np-live__item-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--np-color-error, #b3402a);
	margin-top: 0.5em;
	flex-shrink: 0;
}

.np-live__title {
	font-size: var(--np-size-md, 1rem);
	margin: 0 0 0.25rem;
}

.np-live__title a {
	color: var(--np-color-ink, #1c231f);
}

.np-live__time {
	font-family: var(--np-font-mono, monospace);
	font-size: var(--np-size-xs, 0.75rem);
	color: var(--np-color-muted, #6f6f66);
}

.np-live-pill {
	display: inline-flex;
	align-items: center;
	background: var(--np-color-error, #b3402a);
	color: #fff;
	font-family: var(--np-font-mono, monospace);
	font-size: var(--np-size-xs, 0.75rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.2rem 0.6rem;
	border-radius: var(--np-radius-full, 9999px);
}

/* 10. Opinion ---------------------------------------------------------------------------------- */
.np-opinion__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

.np-opinion__item {
	border-left: 4px solid var(--np-color-primary, #2e6b4f);
	padding: 1rem 1.25rem;
}

.np-opinion__quote {
	margin: 0 0 0.75rem;
}

.np-opinion__quote p {
	font-family: var(--np-font-display, Georgia, serif);
	font-size: var(--np-size-xl, 1.5rem);
	line-height: 1.3;
	margin: 0;
}

.np-opinion__quote a {
	color: var(--np-color-ink, #1c231f);
}

.np-opinion__author {
	font-family: var(--np-font-mono, monospace);
	font-size: var(--np-size-xs, 0.75rem);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--np-color-muted, #6f6f66);
}

/* 11. Regions -------------------------------------------------------------------------------------- */
.np-regions__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.5rem;
}

.np-regions__card {
	background: var(--np-color-surface, #fff);
	border-radius: var(--np-radius-md, 10px);
	overflow: hidden;
	border: 1px solid var(--np-color-border, #d6d0c2);
	box-shadow: var(--np-shadow-sm, none);
}

.np-regions__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.np-regions__name {
	font-size: var(--np-size-lg, 1.25rem);
	margin: 0.75rem 1rem 0.25rem;
}

.np-regions__name a {
	color: var(--np-color-ink, #1c231f);
}

.np-regions__story {
	margin: 0 1rem 1rem;
	font-size: var(--np-size-sm, 0.875rem);
	color: var(--np-color-muted, #6f6f66);
}

.np-regions__story a {
	color: var(--np-color-muted, #6f6f66);
}

/* 12. Newsletter section ------------------------------------------------------------------------------- */
.np-newsletter {
	border-radius: var(--np-radius-lg, 22px);
	background: var(--np-color-primary, #2e6b4f);
	color: var(--np-color-on-primary, #fff);
	padding: var(--np-space-xl, 3.5rem) var(--np-space-lg, 2.5rem);
	margin: var(--np-space-lg, 2.5rem) auto;
	max-width: 1200px;
}

.np-newsletter__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
}

.np-newsletter__title {
	font-size: var(--np-size-3xl, 2.25rem);
	margin: 0 0 0.25rem;
}

.np-newsletter__sub {
	opacity: 0.85;
	margin: 0;
}

.np-newsletter__form {
	display: flex;
	gap: 0.5rem;
	flex: 1;
	min-width: 280px;
	max-width: 460px;
}

.np-newsletter__form input[type="email"] {
	flex: 1;
	padding: 0.8rem 1rem;
	border: 0;
	border-radius: var(--np-radius-md, 10px);
	min-width: 0;
}

.np-newsletter--card {
	background: var(--np-color-surface, #fff);
	color: var(--np-color-ink, #1c231f);
	border: 1px solid var(--np-color-border, #d6d0c2);
	box-shadow: var(--np-shadow-md, none);
}

.np-newsletter--banner {
	border-radius: 0;
}

/* 13. Article -------------------------------------------------------------------------------------------------- */
.np-article {
	max-width: 1200px;
	margin: 0 auto;
}

.np-article__header {
	max-width: 820px;
	margin: 0 auto var(--np-space-lg, 2.5rem);
}

.np-article__kicker {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.np-article__title {
	font-size: var(--np-size-5xl, 3.5rem);
	line-height: 1.04;
	margin-bottom: 0.5em;
}

.np-article__dek {
	font-size: var(--np-size-xl, 1.5rem);
	color: var(--np-color-muted, #6f6f66);
	line-height: 1.45;
}

.np-article__meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	font-size: var(--np-size-sm, 0.875rem);
	color: var(--np-color-muted, #6f6f66);
}

.np-article__author {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.np-article__author a {
	color: var(--np-color-ink, #1c231f);
	font-weight: 700;
}

.np-article__avatar {
	border-radius: 50%;
}

.np-article__lead-media {
	max-width: 1200px;
	margin: 0 auto var(--np-space-lg, 2.5rem);
}

.np-article__lead-img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--np-radius-lg, 22px);
}

.np-article__caption {
	padding: 0.5rem 0.25rem;
	font-size: var(--np-size-xs, 0.75rem);
	color: var(--np-color-muted, #6f6f66);
}

.np-article--lead-fullbleed .np-article__lead-img {
	border-radius: 0;
	aspect-ratio: 21 / 9;
}

.np-article--lead-cinematic .np-article__lead-media {
	margin-top: calc(-1 * var(--np-space-lg, 2.5rem));
}

.np-article__layout {
	display: grid;
	grid-template-columns: 72px minmax(0, 820px);
	justify-content: center;
	gap: var(--np-space-md, 1.5rem);
	align-items: start;
}

.np-article__content {
	max-width: 820px;
	font-size: var(--np-size-lg, 1.25rem);
	line-height: 1.8;
}

.np-article__content > p {
	margin-bottom: 1.5em;
}

.np-article__content img {
	border-radius: var(--np-radius-md, 10px);
}

/* 13b. Single-article treatments (shared reading typography) ------------------ */
.np-single__title,
.np-single__dek,
.np-single__content,
.np-single__flow,
.np-single__mag-body,
.np-single__mosaic-body,
.np-single__noir-body,
.np-single__elegant-body,
.np-single__airy-card,
.np-single__data-body {
	color: var(--np-color-ink, #1c231f);
}

.np-single__title {
	text-wrap: balance;
}

.np-single__dek {
	color: var(--np-color-muted, #6f6f66);
}

.np-single__content > p,
.np-single__flow > p,
.np-single__mag-body > p,
.np-single__mosaic-body > p,
.np-single__noir-body > p,
.np-single__elegant-body > p,
.np-single__airy-card > p,
.np-single__data-body > p {
	margin-bottom: 1.5em;
}

.np-single__content img,
.np-single__flow img,
.np-single__mag-body img,
.np-single__mosaic-body img,
.np-single__noir-body img,
.np-single__elegant-body img,
.np-single__airy-card img,
.np-single__data-body img {
	max-width: 100%;
	height: auto;
	border-radius: var(--np-radius-md, 10px);
}

.np-single__content a,
.np-single__flow a,
.np-single__mag-body a,
.np-single__mosaic-body a,
.np-single__noir-body a,
.np-single__elegant-body a,
.np-single__airy-card a,
.np-single__data-body a {
	color: var(--np-color-primary, #2e6b4f);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.np-single__content blockquote,
.np-single__flow blockquote,
.np-single__mag-body blockquote,
.np-single__mosaic-body blockquote,
.np-single__noir-body blockquote,
.np-single__elegant-body blockquote,
.np-single__airy-card blockquote,
.np-single__data-body blockquote {
	margin: 2rem 0;
}

.np-single__content .wp-caption,
.np-single__flow .wp-caption,
.np-single__mag-body .wp-caption,
.np-single__mosaic-body .wp-caption,
.np-single__noir-body .wp-caption,
.np-single__elegant-body .wp-caption,
.np-single__airy-card .wp-caption,
.np-single__data-body .wp-caption {
	max-width: 100%;
}

.np-single__content .wp-caption-text,
.np-single__flow .wp-caption-text,
.np-single__mag-body .wp-caption-text,
.np-single__mosaic-body .wp-caption-text,
.np-single__noir-body .wp-caption-text,
.np-single__elegant-body .wp-caption-text,
.np-single__airy-card .wp-caption-text,
.np-single__data-body .wp-caption-text {
	font-size: var(--np-size-xs, 0.75rem);
	color: var(--np-color-muted, #6f6f66);
	padding-top: 0.5rem;
}

.np-single__content .alignwide,
.np-single__flow .alignwide,
.np-single__mag-body .alignwide,
.np-single__mosaic-body .alignwide,
.np-single__noir-body .alignwide,
.np-single__elegant-body .alignwide,
.np-single__airy-card .alignwide,
.np-single__data-body .alignwide {
	max-width: 100%;
}

.page-links {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	align-items: center;
	margin: 2rem 0;
	font-weight: 600;
}

.np-article__content .wp-block-quote,
.np-article__content blockquote {
	border-left: 4px solid var(--np-color-accent, #c05621);
	padding: 0.25rem 0 0.25rem 1.5rem;
	margin: 2em 0;
	font-family: var(--np-font-display, Georgia, serif);
	font-size: var(--np-size-2xl, 1.875rem);
	font-style: italic;
	line-height: 1.4;
	color: var(--np-color-ink, #1c231f);
}

.np-article__content .wp-block-pullquote {
	border-top: 2px solid var(--np-color-primary, #2e6b4f);
	border-bottom: 2px solid var(--np-color-primary, #2e6b4f);
	padding: 2em 1em;
	text-align: center;
}

.np-article__source {
	font-size: var(--np-size-sm, 0.875rem);
	color: var(--np-color-muted, #6f6f66);
	border-top: 1px solid var(--np-color-border, #d6d0c2);
	padding-top: 1rem;
}

.np-article__foot {
	margin-top: 2rem;
}

.np-tags {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	align-items: center;
}

.np-tags__label {
	font-weight: 700;
}

.np-tags a {
	background: var(--np-color-neutral-3, #d6d0c2);
	padding: 0.3rem 0.75rem;
	border-radius: var(--np-radius-full, 9999px);
	font-size: var(--np-size-xs, 0.75rem);
	color: var(--np-color-ink, #1c231f);
}

/* 14. Reading progress --------------------------------------------------------------------------------------- */
.np-reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 300;
	background: transparent;
	pointer-events: none;
}

.np-reading-progress__bar {
	display: block;
	height: 100%;
	width: 0;
	background: var(--np-color-accent, #c05621);
	transition: width 0.08s linear;
}

/* 15. Share tools ----------------------------------------------------------------------------------------------- */
.np-share {
	position: sticky;
	top: 2rem;
}

.np-share__label {
	display: block;
	font-family: var(--np-font-mono, monospace);
	font-size: var(--np-size-xs, 0.75rem);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--np-color-muted, #6f6f66);
	margin-bottom: 0.75rem;
}

.np-share__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.np-share__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--np-color-border, #d6d0c2);
	color: var(--np-color-muted, #6f6f66);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.np-share__link:hover {
	background: var(--np-color-primary, #2e6b4f);
	border-color: var(--np-color-primary, #2e6b4f);
	color: var(--np-color-on-primary, #fff);
}

/* 16. Author box --------------------------------------------------------------------------------------------------- */
.np-author-box {
	display: flex;
	gap: 1.5rem;
	max-width: 820px;
	margin: var(--np-space-2xl, 5rem) auto 0;
	background: var(--np-color-surface, #fff);
	border: 1px solid var(--np-color-border, #d6d0c2);
	border-radius: var(--np-radius-lg, 22px);
	padding: 1.5rem;
	align-items: flex-start;
}

.np-author-box__avatar {
	border-radius: 50%;
	width: 96px;
	height: 96px;
	object-fit: cover;
}

.np-author-box__name {
	font-size: var(--np-size-xl, 1.5rem);
	margin: 0.25rem 0 0.5rem;
}

.np-author-box__bio {
	color: var(--np-color-muted, #6f6f66);
	font-size: var(--np-size-sm, 0.875rem);
}

/* 17. Related / next-prev ---------------------------------------------------------------------------------------------- */
.np-related {
	max-width: 1200px;
	margin: var(--np-space-2xl, 5rem) auto 0;
	padding: 0 var(--np-space-md, 1.5rem);
}

.np-related__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.np-next-prev {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	max-width: 1200px;
	margin: var(--np-space-xl, 3.5rem) auto 0;
	padding: 0 var(--np-space-md, 1.5rem);
}

.np-next-prev__item {
	background: var(--np-color-surface, #fff);
	border: 1px solid var(--np-color-border, #d6d0c2);
	border-radius: var(--np-radius-md, 10px);
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.np-next-prev__item--next {
	text-align: right;
}

.np-next-prev__label {
	font-family: var(--np-font-mono, monospace);
	font-size: var(--np-size-xs, 0.75rem);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--np-color-muted, #6f6f66);
}

.np-next-prev__title {
	font-weight: 700;
	color: var(--np-color-ink, #1c231f);
}

/* 18. Comments ------------------------------------------------------------------------------------------------------------------- */
.np-comments {
	max-width: 820px;
	margin: var(--np-space-2xl, 5rem) auto 0;
	padding: 0 var(--np-space-md, 1.5rem);
}

.np-comments__list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.np-comments__list .children {
	list-style: none;
	margin: 1rem 0 0 2.5rem;
	padding: 0;
}

.np-comment {
	display: flex;
	gap: 1rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--np-color-border, #d6d0c2);
}

.np-comment__avatar img {
	border-radius: 50%;
}

.np-comment__head {
	display: flex;
	gap: 0.75rem;
	align-items: baseline;
	margin-bottom: 0.5rem;
}

.np-comment__head cite {
	font-weight: 700;
	font-style: normal;
}

.np-comment__head time {
	font-size: var(--np-size-xs, 0.75rem);
	color: var(--np-color-muted, #6f6f66);
}

.comment-reply-link {
	font-size: var(--np-size-xs, 0.75rem);
	font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.7rem 1rem;
	border: 1px solid var(--np-color-border, #d6d0c2);
	border-radius: var(--np-radius-md, 10px);
	margin-bottom: 1rem;
	background: var(--np-color-surface, #fff);
}

/* 19. Archive head --------------------------------------------------------------------------------------------------------------- */
.np-archive-head {
	background: var(--np-color-surface, #fff);
	border-bottom: 1px solid var(--np-color-border, #d6d0c2);
	padding: var(--np-space-xl, 3.5rem) var(--np-space-md, 1.5rem);
}

.np-archive-head__inner {
	max-width: 860px;
	margin: 0 auto;
}

.np-archive-head__title {
	font-size: var(--np-size-4xl, 2.75rem);
	margin: 0 0 0.5rem;
}

.np-archive-head__desc {
	color: var(--np-color-muted, #6f6f66);
}

.np-archive-head__search {
	max-width: 480px;
	margin-top: 1.5rem;
}

.np-archive-body {
	max-width: 1200px;
	margin: 0 auto;
	padding: var(--np-space-lg, 2.5rem) var(--np-space-md, 1.5rem);
}

/* 20. Page & 404 ----------------------------------------------------------------------------------------------------------------------- */
.np-page__header,
.np-page__content {
	max-width: 820px;
	margin: 0 auto;
}

.np-page__title {
	font-size: var(--np-size-4xl, 2.75rem);
}

.np-page__content--wide {
	max-width: 1200px;
}

.np-404 {
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
	padding: var(--np-space-3xl, 7rem) var(--np-space-md, 1.5rem);
}

.np-404__code {
	font-family: var(--np-font-display, Georgia, serif);
	font-size: 6rem;
	font-weight: 800;
	line-height: 1;
	color: var(--np-color-primary, #2e6b4f);
	margin: 0 0 1rem;
}

.np-404__title {
	font-size: var(--np-size-3xl, 2.25rem);
}

.np-404__actions {
	margin: 1.5rem 0;
}

.np-404__search {
	max-width: 480px;
	margin: 2rem auto;
}

.np-404__latest {
	margin-top: 4rem;
	text-align: left;
}

.np-empty {
	text-align: center;
	color: var(--np-color-muted, #6f6f66);
	padding: 4rem 1rem;
}

/* 21. Editor blocks inside content ----------------------------------------------------------------------------------------------------- */
.wp-block-columns {
	gap: 1.5rem;
}

.wp-block-image figcaption {
	font-size: var(--np-size-xs, 0.75rem);
	color: var(--np-color-muted, #6f6f66);
	text-align: center;
	padding: 0.5rem;
}

.wp-block-embed {
	margin: 2em 0;
}

.alignwide {
	max-width: 1200px;
	margin-inline: auto;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

/* 22. Responsive tweaks --------------------------------------------------------------------------------------------------------------------- */
@media (max-width: 900px) {
	.np-hero {
		grid-template-columns: 1fr;
	}

	.np-hero--cinematic .np-hero__media,
	.np-hero--cinematic .np-hero__media img {
		aspect-ratio: 16 / 9;
	}

	.np-hero--duo {
		grid-template-columns: 1fr;
	}

	.np-hero--duo .np-hero__media img {
		aspect-ratio: 16 / 9;
	}

	.np-article__layout {
		grid-template-columns: 1fr;
	}

	.np-share {
		position: static;
	}

	.np-share__list {
		flex-direction: row;
	}

	.np-article__title {
		font-size: var(--np-size-4xl, 2.75rem);
	}
}

@media (max-width: 600px) {
	.np-article__title {
		font-size: var(--np-size-3xl, 2.25rem);
	}

	.np-hero--typographic .np-hero__rail {
		grid-template-columns: 1fr;
	}

	.np-latest__grid--list .np-card {
		flex-direction: column;
	}

	.np-latest__grid--list .np-card__media {
		width: 100%;
	}

	.np-next-prev {
		grid-template-columns: 1fr;
	}

	.np-author-box {
		flex-direction: column;
	}

	.np-newsletter__inner {
		flex-direction: column;
		align-items: stretch;
	}
}
