/*
Theme Name: Narrativa Redesign
Theme URI: https://www.narrativa.com
Description: Standalone classic theme implementing the 2026 Narrativa redesign. Renders the bundled static design pages for the homepage and site pages, with WordPress content as fallback.
Author: Narrativa
Version: 1.0.0
Text Domain: narrativa-redesign
Requires PHP: 7.4
*/

/* WordPress chrome compatibility */
.narrativa-legacy-content {
	padding-top: 48px;
	padding-bottom: 72px;
}

.narrativa-legacy-content img,
.narrativa-legacy-content video,
.narrativa-legacy-content iframe {
	max-width: 100%;
	height: auto;
}

.narrativa-legacy-content h1 {
	color: var(--narrativa-blue, #302c48);
	font-family: var(--display, inherit);
	font-size: 1.875rem;
	font-weight: 400;
}

/* 404 page heading */
body.error404 .fusion-title-size-three .fusion-title-heading {
	font-size: clamp(36px, 5vw, 56px) !important;
	line-height: 1.1 !important;
}

.narrativa-legacy-content h2,
.narrativa-legacy-content h3,
.narrativa-legacy-content h4 {
	color: var(--narrativa-blue, #302c48);
}

.narrativa-legacy-content a {
	color: #7561c1;
}

.narrativa-archive {
	padding-top: 48px;
	padding-bottom: 72px;
}

.narrativa-archive-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 18px;
}

.narrativa-archive-list a {
	color: var(--narrativa-blue, #302c48);
	font-weight: 600;
	text-decoration: none;
}

.narrativa-archive-list a:hover {
	color: #7561c1;
}

/* Insights archive */
.insight-image-placeholder { position: relative; display: grid; height: 190px; overflow: hidden; place-items: center; background: radial-gradient(circle at 75% 24%, #c6baff 0, #c6baff33 24%, transparent 25%), linear-gradient(135deg, #f3f0ff, #e5e1f6); }
.insight-image-placeholder::before { position: absolute; width: 136px; height: 136px; border: 1px solid #8978d455; border-radius: 50%; content: ""; box-shadow: 0 0 0 18px #8978d411, 0 0 0 38px #8978d40b; }
.insight-image-placeholder::after { position: absolute; right: 17px; bottom: 17px; left: 17px; height: 1px; background: linear-gradient(90deg, transparent, #8978d455, transparent); content: ""; }
.insight-placeholder-mark { position: relative; z-index: 1; display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid #ffffffd9; border-radius: 16px; background: #ffffffc9; box-shadow: 0 8px 24px #302c4817; color: #000080; font: 700 21px/1 var(--display); }
.insight-placeholder-label { position: absolute; z-index: 1; bottom: 25px; left: 26px; color: #61578e; font: 700 9px/1 var(--sans); letter-spacing: 1.7px; }
.narrativa-insights .stories-heading h1 { margin: 22px 0 0; font: 500 clamp(43px, 5.2vw, 62px)/1.06 var(--display); letter-spacing: -2.8px; }
.narrativa-insights .stories-heading h1 em { color: var(--narrativa-blue); font-style: normal; }
.narrativa-insights .story-card h3 { min-height: 76px; }
.narrativa-insights .story-card-content { min-height: 205px; }
@media (max-width: 720px) { .narrativa-insights .story-card h3 { min-height: 0; } }

/* Single post */
.page-single-post main#top { row-gap: 40px; }
.page-single-post .page-home-hero.hero { min-height: auto; padding-top: 33px; padding-bottom: 34px; }
/* Single post featured image: show the full image at its natural ratio —
   never crop it into the 600/410 art-shell ratio (branded post cards lose text). */
.page-single-post .page-home-hero .page-art-shell { transform: none; }
.page-single-post .page-art-shell .story-photo-art { aspect-ratio: auto; height: auto; object-fit: contain; }
.page-single-post .page-content-section { padding-top: 0; padding-bottom: 64px; }
.page-hero.page-home-hero.page-hero-plain { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-top: 58px; }
.page-post-meta { margin: 0 0 16px; color: #8775d4; font: 600 13px/1.4 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.page-post-body { max-width: 860px; }
.page-post-body p { margin: 0 0 18px; color: #696775; font-size: 16px; line-height: 1.75; }
.page-post-body h2 { margin: 36px 0 12px; color: #302b45; font: 500 clamp(28px, 3vw, 40px)/1.15 var(--display); letter-spacing: -1.2px; }
.page-post-body h4, .page-post-body h5, .page-post-body h6 { margin: 24px 0 8px; color: #302b45; font: 600 17px/1.3 var(--display); }
.page-post-body a { color: #7561c1; text-decoration: underline; text-underline-offset: 3px; }
.page-post-body a:hover { color: #5a4bb5; }
.page-post-body ul, .page-post-body ol { margin: 0 0 18px; padding-left: 22px; color: #353345; font-size: 15px; line-height: 1.7; }
.page-post-body li::marker { color: #7561c1; }
.page-post-body img { display: block; max-width: 100%; height: auto; margin: 24px 0; border: 1px solid #e3e0ed; border-radius: 10px; }
.page-post-body img,
.page-single-post .page-content-builder img {
	max-width: min(100%, 760px) !important;
	max-height: 560px !important;
	width: auto !important;
	height: auto !important;
	display: block !important;
	float: none !important;
	margin-left: 0 !important;
	margin-right: auto !important;
}
/* Keep wide/near-square images undistorted: width auto + max-height scale proportionally.
   Center images that WordPress marks as centered. */
.page-post-body img.aligncenter,
.page-single-post .page-content-builder img.aligncenter {
	margin-left: auto !important;
	margin-right: auto !important;
}
.page-post-body figure,
.page-post-body .wp-block-image,
.page-single-post .page-content-builder figure,
.page-single-post .page-content-builder .wp-block-image {
	width: min(100%, 760px) !important;
	max-width: min(100%, 760px) !important;
	margin: 24px 0 !important;
	text-align: left !important;
}
.page-post-body figcaption,
.page-post-body .wp-caption-text,
.page-single-post .page-content-builder figcaption,
.page-single-post .page-content-builder .wp-caption-text {
	margin-top: 8px;
	color: #777286;
	font-size: 13px;
	text-align: left !important;
}
.page-post-body table { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: 14px; }
.page-post-body th, .page-post-body td { padding: 10px 12px; border: 1px solid #eeecf2; text-align: left; }
.page-post-body th { background: #f7f5ff; color: #302b45; }
.page-post-body code { padding: 2px 6px; border-radius: 4px; background: #f7f5ff; color: #4a4468; font-size: 14px; }
.page-post-body pre { margin: 24px 0; padding: 16px; border: 1px solid #eeecf2; border-radius: 8px; background: #fbfaff; overflow-x: auto; font-size: 13px; line-height: 1.6; }
.page-post-body pre code { padding: 0; background: none; }
.page-post-body iframe { max-width: 100%; }
.page-single-post .page-content-builder {
	width: min(1220px, calc(100% - 96px));
	margin-right: auto;
	margin-left: auto;
	padding-top: 0;
	padding-bottom: 0;
}
.page-single-post .page-content-builder .fusion-fullwidth {
	justify-content: flex-start !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background-color: transparent !important;
	box-shadow: none !important;
}
.page-single-post .page-content-builder .fusion-fullwidth + .fusion-fullwidth { margin-top: 24px !important; }
.page-single-post .page-content-builder .fusion-builder-row.fusion-row {
	display: block !important;
	width: min(860px, 100%) !important;
	max-width: 860px !important;
	flex: 0 1 860px !important;
	margin: 0 !important;
}
.page-single-post .page-content-builder .fusion-builder-row-inner {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}
.page-single-post .page-content-builder .fusion-layout-column {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
	transform: none !important;
}
.page-single-post .page-content-builder .fusion-column-wrapper {
	display: block !important;
	padding: 0 !important;
	background-color: transparent !important;
	box-shadow: none !important;
}
.page-single-post .page-content-builder .fusion-text,
.page-single-post .page-content-builder .fusion-content-tb {
	color: #696775 !important;
	font-family: var(--sans) !important;
	font-size: 16px !important;
	line-height: 1.75 !important;
}
.page-single-post .page-content-builder .fusion-text p,
.page-single-post .page-content-builder .fusion-content-tb p {
	margin: 0 0 18px !important;
	color: #696775 !important;
	font-family: var(--sans) !important;
	font-size: 16px !important;
	line-height: 1.75 !important;
}
.page-single-post .page-content-builder h1 { display: none !important; }
.page-single-post .page-content-builder h2,
.page-single-post .page-content-builder .fusion-title-heading {
	margin: 36px 0 12px !important;
	color: #302b45 !important;
	font-family: var(--display) !important;
	font-size: clamp(28px, 3vw, 40px) !important;
	font-weight: 500 !important;
	line-height: 1.15 !important;
	letter-spacing: -1.2px !important;
	text-align: left !important;
}
.page-single-post .page-content-builder h3 {
	margin: 25px 0 8px !important;
	color: #302b45 !important;
	font-family: var(--display) !important;
	font-size: 21px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-align: left !important;
}
.page-single-post .page-content-builder ul,
.page-single-post .page-content-builder ol {
	margin: 0 0 18px !important;
	padding-left: 22px !important;
	color: #353345 !important;
	font-family: var(--sans) !important;
	font-size: 15px !important;
	line-height: 1.7 !important;
}
.page-single-post .page-content-builder li::marker { color: #7561c1; }
.page-single-post .page-content-builder a { color: #7561c1; text-decoration: underline; text-underline-offset: 3px; }
.page-single-post .page-content-builder a:hover { color: #5a4bb5; }
.page-single-post .page-content-builder .fusion-image-element .fusion-imageframe {
	display: block;
	overflow: hidden;
	border: 1px solid #e3e0ed !important;
	border-radius: 12px !important;
	box-shadow: 0 14px 36px #302c4812;
}
.page-single-post .page-content-builder .fusion-image-element .fusion-imageframe img {
	border: 0;
	border-radius: 0 !important;
	box-shadow: none;
}
/* Avada aspect-ratio frames crop builder images; show them at natural ratio in posts. */
.page-single-post .page-content-builder .fusion-image-element .fusion-imageframe.has-aspect-ratio {
	aspect-ratio: auto !important;
}
.page-single-post .page-content-builder .fusion-image-element .fusion-imageframe img {
	width: 100% !important;
	height: auto !important;
	object-fit: contain !important;
}
.page-single-post .page-content-builder .fusion-text img[src]:not([src=""]),
.page-single-post .page-content-builder .fusion-builder-row img.alignnone[src]:not([src=""]),
.page-single-post .page-content-builder .fusion-builder-row img.aligncenter[src]:not([src=""]) {
	max-width: 100%;
	height: auto;
	border: 1px solid #e3e0ed;
	border-radius: 10px;
	box-shadow: 0 12px 32px #302c4814;
}
@media (max-width: 720px) {
	.page-single-post .page-content-builder { width: calc(100% - 40px); }
}
@media (max-width: 420px) {
	.page-single-post .page-content-builder { width: calc(100% - 32px); }
}
@media (max-width: 720px) {
	.page-single-post .page-home-hero.hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
		padding-top: 48px;
		padding-bottom: 32px;
	}
	.page-single-post .page-home-hero .hero-copy { padding: 0; }
	.page-single-post .page-home-hero h1 {
		max-width: 100%;
		font-size: clamp(36px, 10vw, 44px);
		overflow-wrap: anywhere;
	}
	.page-single-post .page-home-hero .hero-visual {
		width: 100%;
		min-height: 360px;
		margin: 0;
		transform: none;
	}
	.page-single-post .page-home-hero .page-art-shell { width: calc(100% - 28px); }
}
@media (max-width: 420px) {
	.page-single-post .page-home-hero .hero-visual { min-height: 320px; }
}
.page-content-builder-tail { padding-top: 8px; }
.page-content-builder-tail .page-post-body { margin-left: 0; margin-right: auto; }
