/*
 * Design style: Nordic Editorial
 * Warm cream, editorial serif, olive accent. Matches the Nordic mockup.
 */

.smb-style-nordic {
	--smb-ink: #24281f;
	--smb-body: #4c5045;
	--smb-muted: #83887a;
	--smb-line: #e4e0d5;
	--smb-surface: #ffffff;
	--smb-soft: #f1eee5;
	--smb-cream: #faf8f3;
	--smb-accent: #5a6b34;
	--smb-radius: 0px;
	--smb-shadow: none;
	--smb-heading-font: "Fraunces", "Playfair Display", Georgia, serif;

	background: var(--smb-cream);
	color: var(--smb-body);
	font-family: "Work Sans", -apple-system, "Segoe UI", sans-serif;
}

.smb-style-nordic h1,
.smb-style-nordic h2,
.smb-style-nordic h3,
.smb-style-nordic h4 {
	font-family: var(--smb-heading-font);
	font-weight: 400;
	letter-spacing: -0.02em;
	color: var(--smb-ink);
}

/* ---------- Header ---------- */
.smb-style-nordic .site-header {
	background: var(--smb-cream);
	border-bottom: 1px solid var(--smb-line);
	box-shadow: none;
}

.smb-style-nordic .header-inner {
	padding-block: 1.4rem;
	align-items: center;
}

.smb-style-nordic .site-title {
	font-family: var(--smb-heading-font);
	font-size: 1.75rem;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--smb-ink);
	text-decoration: none;
	line-height: 1;
}

.smb-style-nordic .site-description {
	margin: 0.45rem 0 0;
	font-size: 0.62rem;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--smb-muted);
}

.smb-style-nordic .primary-menu {
	gap: 2.2rem;
}

.smb-style-nordic .primary-menu a,
.smb-style-nordic .nav-link {
	font-family: var(--smb-heading-font);
	font-size: 1.02rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--smb-ink);
	text-decoration: none;
}

/* ---------- Hero: split, image bleeds to the right edge ---------- */
.smb-style-nordic .front-hero {
	background: var(--smb-cream);
	border-bottom: 1px solid var(--smb-line);
	padding: 0;
	overflow: hidden;
}

.smb-style-nordic .front-hero.has-media .front-hero-inner {
	max-width: none;
	width: 100%;
	padding-right: 0;
	padding-left: max(1.25rem, calc((100vw - var(--smb-container)) / 2 + 1.25rem));
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.smb-style-nordic .front-hero-copy {
	padding-block: clamp(3rem, 6vw, 5.5rem);
	max-width: 34rem;
}

.smb-style-nordic .front-hero-title {
	font-size: clamp(2.6rem, 1.4rem + 3.6vw, 4.6rem);
	line-height: 1.03;
	margin: 0 0 1.5rem;
}

.smb-style-nordic .front-hero-lead {
	font-family: var(--smb-heading-font);
	font-size: 1.14rem;
	line-height: 1.65;
	color: var(--smb-body);
	max-width: 34ch;
	margin-bottom: 2.4rem;
}

.smb-style-nordic .eyebrow {
	color: var(--smb-accent);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-size: 0.76rem;
	font-weight: 600;
	margin-bottom: 1.3rem;
}

.smb-style-nordic .front-hero-media {
	margin: 0;
	height: 100%;
	align-self: stretch;
}

.smb-style-nordic .front-hero-media img {
	border-radius: 0;
	box-shadow: none;
	width: 100%;
	height: 100%;
	min-height: clamp(320px, 44vw, 620px);
	object-fit: cover;
	display: block;
}

/* ---------- Buttons ---------- */
.smb-style-nordic .button {
	border-radius: 0;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 1.05rem 1.9rem;
}

.smb-style-nordic .button-primary {
	background: var(--smb-accent);
	border-color: var(--smb-accent);
	color: #fff;
}

.smb-style-nordic .button-primary:hover {
	background: #47562a;
	border-color: #47562a;
	transform: none;
}

.smb-style-nordic .button-ghost {
	border: 1px solid var(--smb-accent);
	color: var(--smb-accent);
	background: transparent;
}

.smb-style-nordic .button-ghost:hover {
	background: var(--smb-accent);
	color: #fff;
	transform: none;
}

/* ---------- Pillars: tinted tiles, icon badge, centred ---------- */
.smb-style-nordic .pillars-section {
	background: var(--smb-cream);
	border-block: 0;
	padding-block: clamp(3rem, 5vw, 4.5rem);
}

.smb-style-nordic .pillars-section .section-header-center {
	text-align: center;
	border-bottom: 0;
	padding-bottom: 0;
	margin-bottom: 2.6rem;
}

.smb-style-nordic .pillars-section .section-subtitle {
	margin-inline: auto;
}

.smb-style-nordic .pillar-grid {
	gap: 1.6rem;
	align-items: stretch;
	grid-auto-rows: 1fr;
}

.smb-style-nordic .pillar-card {
	display: flex;
	flex-direction: column;
	grid-template-columns: none;
	align-items: center;
	justify-content: flex-start;
	background: #eceadf;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	text-align: center;
	padding: clamp(2rem, 3vw, 2.8rem) clamp(1.4rem, 2.5vw, 2rem);
	overflow: visible;
	min-height: 350px;
}

.smb-style-nordic .pillar-card.pillar-tone-2 { background: #f4ece1; }
.smb-style-nordic .pillar-card.pillar-tone-3 { background: #e9ece7; }

.smb-style-nordic .pillar-card:hover {
	transform: none;
	box-shadow: none;
}

.smb-style-nordic .pillar-card .pillar-image {
	width: auto;
	height: auto;
	background: none;
	border-radius: 0;
	overflow: visible;
	aspect-ratio: auto;
	background: none;
	display: flex;
	justify-content: center;
	margin: 0 0 1.35rem;
	flex: 0 0 auto;
	text-decoration: none;
}

.smb-style-nordic .pillar-tone-1 .pillar-image,
.smb-style-nordic .pillar-tone-2 .pillar-image,
.smb-style-nordic .pillar-tone-3 .pillar-image {
	background: none;
}

.smb-style-nordic .pillar-card .pillar-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 82px;
	height: 82px;
	border-radius: 20px;
	background: var(--smb-accent);
	color: #fff;
}

.smb-style-nordic .pillar-card.pillar-tone-2 .pillar-icon { background: #d8ab63; color: #fff; }
.smb-style-nordic .pillar-card.pillar-tone-3 .pillar-icon { background: #93a396; color: #fff; }

.smb-style-nordic .pillar-card .pillar-icon svg {
	width: 40px;
	height: 40px;
	stroke-width: 2;
}

.smb-style-nordic .pillar-card .pillar-image img {
	width: 82px;
	height: 82px;
	border-radius: 20px;
	object-fit: cover;
}

.smb-style-nordic .pillar-body {
	flex: 1 1 auto;
	padding: 0;
	align-items: center;
	text-align: center;
	gap: 0.9rem;
	display: flex;
	flex-direction: column;
	width: 100%;
}

.smb-style-nordic .pillar-title {
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1.2;
	margin: 0;
}

.smb-style-nordic .pillar-title a {
	color: var(--smb-ink);
	text-decoration: none;
}

.smb-style-nordic .pillar-excerpt {
	color: var(--smb-body);
	font-size: 1rem;
	line-height: 1.6;
	max-width: 30ch;
}

.smb-style-nordic .pillar-cta {
	text-transform: uppercase;
	letter-spacing: 0.13em;
	font-size: 0.74rem;
	color: var(--smb-ink);
	margin-top: auto;
	padding-top: 0;
}

/* ---------- Article and sidebar: readable, never squeezed ---------- */
.smb-style-nordic .content-with-sidebar {
	grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
	gap: clamp(2rem, 4vw, 3.5rem);
}

.smb-style-nordic .single-article .post-thumbnail img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.smb-style-nordic .widget-area {
	background: transparent;
	border-top: 0;
	padding: 0;
	min-width: 0;
}

.smb-style-nordic .widget {
	border-radius: 0;
	box-shadow: none;
	padding: 1.35rem;
}

.smb-style-nordic .widget-posts .widget-post.text-only {
	display: block;
}

.smb-style-nordic .widget-posts .widget-post.has-thumb {
	grid-template-columns: 72px minmax(0, 1fr);
}

.smb-style-nordic .widget-post-body,
.smb-style-nordic .widget-post-title {
	min-width: 0;
	word-break: normal;
	overflow-wrap: anywhere;
}

.smb-style-nordic .widget-post-title {
	font-size: 0.96rem;
	line-height: 1.35;
}

@media (max-width: 900px) {
	.smb-style-nordic .content-with-sidebar {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	.smb-style-nordic .front-hero.has-media .front-hero-inner {
		grid-template-columns: 1fr;
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}

	.smb-style-nordic .front-hero-media img {
		min-height: 280px;
	}

	.smb-style-nordic .pillar-card {
		min-height: 0;
	}
}

/* ---------- Sections and cards ---------- */
.smb-style-nordic .recent-section {
	background: var(--smb-cream);
	border-top: 1px solid var(--smb-line);
}

.smb-style-nordic .section-title {
	font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.2rem);
	letter-spacing: -0.02em;
	text-transform: none;
}

.smb-style-nordic .section-header {
	border-bottom: 1px solid var(--smb-line);
	border-top: 0;
	padding-bottom: 1rem;
	margin-bottom: 2.2rem;
}

.smb-style-nordic .section-link {
	text-transform: uppercase;
	letter-spacing: 0.13em;
	font-size: 0.74rem;
	color: var(--smb-ink);
}

.smb-style-nordic .post-card {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}

.smb-style-nordic .post-card:hover {
	transform: none;
	box-shadow: none;
}

.smb-style-nordic .post-card .post-card-image img,
.smb-style-nordic .post-card .image-placeholder {
	border-radius: 0;
}

.smb-style-nordic .post-card-body {
	padding: 1.15rem 0 0;
	gap: 0.55rem;
}

.smb-style-nordic .post-card-title {
	font-size: 1.35rem;
	line-height: 1.25;
}

.smb-style-nordic .post-category {
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--smb-accent);
	background: none;
	padding: 0;
	text-decoration: none;
}

.smb-style-nordic .post-card-meta {
	font-size: 0.8rem;
	color: var(--smb-muted);
}

/* ---------- CTA band ---------- */
.smb-style-nordic .cta-band {
	background: var(--smb-accent);
	color: #f3f1e7;
	border: 0;
}

.smb-style-nordic .cta-band h2 { color: #fff; }
.smb-style-nordic .cta-band p { color: #e6e8d9; }

.smb-style-nordic .cta-band .button-primary {
	background: #f7f5ee;
	border-color: #f7f5ee;
	color: var(--smb-accent);
}

/* ---------- Footer: cream, editorial columns ---------- */
.smb-style-nordic .site-footer {
	background: var(--smb-cream);
	color: var(--smb-body);
	border-top: 1px solid var(--smb-line);
}

.smb-style-nordic .site-footer a { color: var(--smb-ink); }
.smb-style-nordic .site-footer a:hover { color: var(--smb-accent); }

.smb-style-nordic .footer-brand-title {
	font-family: var(--smb-heading-font);
	font-size: 1.4rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.smb-style-nordic .footer-column-title {
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: 0.72rem;
	color: var(--smb-ink);
}

.smb-style-nordic .footer-credits {
	border-top: 1px solid var(--smb-line);
	color: var(--smb-muted);
}

/* ---------- v1.6: pillar card design variants ---------- */

/* White card with shadow */
.smb-style-nordic .pillar-style-card .pillar-card,
.smb-style-nordic .pillar-style-card .pillar-card.pillar-tone-2,
.smb-style-nordic .pillar-style-card .pillar-card.pillar-tone-3 {
	background: #fff;
	border: 1px solid rgba(31, 29, 24, 0.08);
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(31, 29, 24, 0.07);
}

/* Minimal, no background */
.smb-style-nordic .pillar-style-minimal .pillar-card,
.smb-style-nordic .pillar-style-minimal .pillar-card.pillar-tone-2,
.smb-style-nordic .pillar-style-minimal .pillar-card.pillar-tone-3 {
	background: transparent;
	border-top: 2px solid rgba(31, 29, 24, 0.15);
	padding: 2rem 0 0;
	min-height: 0;
	text-align: left;
	align-items: flex-start;
}
.smb-style-nordic .pillar-style-minimal .pillar-body {
	align-items: flex-start;
	text-align: left;
}
.smb-style-nordic .pillar-style-minimal .pillar-excerpt { max-width: none; }

/* Large cover image on top */
.smb-style-nordic .pillar-style-cover .pillar-card,
.smb-style-nordic .pillar-style-cover .pillar-card.pillar-tone-2,
.smb-style-nordic .pillar-style-cover .pillar-card.pillar-tone-3 {
	background: #fff;
	padding: 0 0 1.8rem;
	border-radius: 14px;
	overflow: hidden;
	text-align: left;
	align-items: stretch;
	min-height: 0;
	box-shadow: 0 12px 30px rgba(31, 29, 24, 0.06);
}
.smb-style-nordic .pillar-style-cover .pillar-image {
	margin: 0 0 1.4rem;
	display: block;
	width: 100%;
}
.smb-style-nordic .pillar-style-cover .pillar-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	border-radius: 0;
	object-fit: cover;
	display: block;
}
.smb-style-nordic .pillar-style-cover .pillar-icon {
	width: 100%;
	height: 180px;
	border-radius: 0;
}
.smb-style-nordic .pillar-style-cover .pillar-body {
	align-items: flex-start;
	text-align: left;
	padding-inline: 1.6rem;
}
.smb-style-nordic .pillar-style-cover .pillar-excerpt { max-width: none; }

/* No media */
.smb-style-nordic .pillar-media-none .pillar-card { min-height: 0; }


/* ---- Hero image layouts (v1.7.0) ---- */
.front-hero.is-cover {
	background-size: cover;
	background-position: center;
	color: #fff;
	padding-block: clamp(4rem, 12vw, 8rem);
}
.front-hero.is-cover .front-hero-inner {
	display: block;
	max-width: 760px;
	text-align: left;
}
.front-hero.is-cover .front-hero-title,
.front-hero.is-cover .front-hero-lead,
.front-hero.is-cover .eyebrow {
	color: #fff;
}
.front-hero.is-cover .button-ghost {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.7);
}
.front-hero.hero-layout-text .front-hero-inner {
	display: block;
	max-width: 780px;
}
.front-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
