/* ========================================================================== 
   Synameda category hub (/poreikiai/)
   ========================================================================== */

body.snmd-needs-hub-page,
body.snmd-needs-hub-page .site-main,
body.snmd-needs-hub-page .page-content,
body.snmd-needs-hub-page article.page,
body.snmd-needs-hub-page .entry-content {
	width: 100%;
	max-width: none !important;
	margin: 0;
	padding: 0 !important;
	background: #f4f5f7;
}

body.snmd-needs-hub-page .entry-title,
body.snmd-needs-hub-page .page-header { display: none; }

body.snmd-needs-hub-page .elementor-widget-shortcode,
body.snmd-needs-hub-page .elementor-widget-shortcode > .elementor-widget-container,
body.snmd-needs-hub-page .elementor-shortcode {
	width: 100%;
	margin: 0;
	padding: 0;
}

.nh {
	--nh-ink: #1f1f1f;
	--nh-text: #354760;
	--nh-border: #dfe3e8;
	--nh-blue: #3e6ae1;
	--nh-blue-dark: #3053b0;
	--nh-navy: #1f2b47;
	--nh-max: 1400px;
	--nh-radius: 22px;

	width: 100%;
	color: var(--nh-ink);
	font-family: "Manrope", "Instrument Sans", system-ui, sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.nh *,
.nh *::before,
.nh *::after { box-sizing: border-box; }

.nh :where(h1, h2, h3, p, ul) { margin: 0; }
.nh :where(ul) { padding: 0; list-style: none; }

.nh h1,
.nh h2,
.nh h3 {
	font-family: "Instrument Sans", "Manrope", system-ui, sans-serif;
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -.032em;
	color: var(--nh-ink);
}

.nh h1 { font-size: clamp(40px, 5vw, 64px); }
.nh h2 { font-size: clamp(30px, 4vw, 48px); }

.nh svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.nh-section { width: 100%; }

/* Elementor owns the live page gaps; this only supports the legacy all-in-one
   shortcode should it be used elsewhere. */
.nh:not(.nh--split) .nh-section { padding: 28px 18px; }
.nh:not(.nh--split) .nh-section:first-child { padding-top: 42px; }

.nh-wrap {
	width: 100%;
	max-width: var(--nh-max);
	margin-inline: auto;
}

.nh-eyebrow {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .055em;
	text-transform: uppercase;
}

.nh-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--snmd-button-height, 40px);
	padding: 0 var(--snmd-button-padding-x, 36px);
	border: var(--snmd-button-1-border-width, 1px) solid var(--snmd-color-primary-button-border, #3e6ae1);
	border-radius: var(--snmd-radius-button, 4px);
	background: var(--snmd-color-primary-button, #3e6ae1);
	color: var(--snmd-color-primary-button-text, #fff) !important;
	font-family: var(--snmd-font-ui, "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif);
	font-size: var(--snmd-button-font-size, 16px);
	font-weight: var(--snmd-weight-ui, 500);
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: none;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.nh-button:focus-visible,
.nh .hm-need__link:focus-visible {
	outline: 3px solid rgba(62, 106, 225, .28);
	outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
	.nh-button:hover {
		border-color: var(--snmd-color-primary-button-border-hover, #3e6ae1);
		background: var(--snmd-color-primary-button-hover, #3e6ae1);
		color: var(--snmd-color-primary-button-text-hover, #fff) !important;
	}
}

/* Category directory ----------------------------------------------------- */

.nh-title-variants {
	margin-bottom: 0;
}

.nh-title-variant {
	min-width: 0;
}

.nh-title-variant__design {
	min-width: 0;
}

.nh-title-variant__design :where(h1, h2) {
	margin: 0;
	font-family: var(--snmd-font-heading, "Instrument Sans", "Manrope", system-ui, sans-serif);
	font-weight: var(--snmd-weight-heading, 600);
}

.nh-title-variant--statement .nh-title-variant__design {
	max-width: 1120px;
	padding: 14px 0 18px;
}

.nh-title-variant--statement h1 {
	font-size: clamp(30px, 3.1vw, 44px);
	line-height: var(--snmd-leading-heading, 1.15);
	letter-spacing: -.028em;
}

.nh-title-variant--statement h1 span {
	font-weight: 400;
	color: #52627a;
}

.nh-category-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 20px;
	margin-top: clamp(34px, 4vw, 50px) !important;
}

.nh .hm-need {
	grid-column: span 2;
}

/* Context ---------------------------------------------------------------- */

.nh-context__panel {
	display: grid;
	grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
	gap: clamp(36px, 6vw, 92px);
	padding: clamp(40px, 5vw, 72px);
	border-radius: var(--nh-radius);
	background: var(--nh-navy);
	color: #fff;
}

.nh-context .nh-eyebrow { color: #aebce7; }
.nh-context h2 { max-width: 15ch; margin-top: 17px; color: #fff; }

.nh-context__copy {
	display: grid;
	align-content: center;
	gap: 18px;
}

.nh-context__copy p {
	font-size: 18px;
	line-height: 1.65;
	color: rgba(255, 255, 255, .82);
}

/* Compact responsible-use notice ---------------------------------------- */

.nh-responsible__panel {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	gap: 16px;
	padding: 20px 22px;
	border: 1px solid var(--snmd-color-border, #dfe7f1);
	border-radius: var(--snmd-radius-small, 12px);
	background: var(--snmd-color-surface-alt, #fff);
}

.nh-responsible__icon {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	color: var(--nh-navy);
}

.nh-responsible__icon svg { width: 24px; height: 24px; }

.nh-responsible h2 {
	font-size: var(--snmd-type-h4, clamp(19px, 1.4vw, 21px));
	line-height: var(--snmd-leading-heading, 1.15);
	letter-spacing: -.02em;
}

.nh-responsible__panel p {
	max-width: 1120px;
	margin-top: 7px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--nh-text);
}

/* Store route ------------------------------------------------------------ */

.nh-shop__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 36px;
	padding: 34px 0 4px;
	border-top: 1px solid var(--nh-border);
}

.nh-shop h2 { font-size: clamp(28px, 3vw, 40px); }

.nh-shop__panel p {
	max-width: 720px;
	margin-top: 13px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--nh-text);
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1080px) {
	.nh-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nh .hm-need { grid-column: auto; }
	.nh-context__panel { gap: 40px; }
}

@media (max-width: 767px) {
	.nh { font-size: 16px; }
	.nh:not(.nh--split) .nh-section { padding: 20px 18px; }

	.nh h1 { font-size: clamp(36px, 11vw, 48px); }
	.nh-title-variants { margin-bottom: 0; }

	.nh-title-variant--statement .nh-title-variant__design { padding: 10px 0 14px; }
	.nh-title-variant--statement h1 { font-size: 30px; line-height: var(--snmd-leading-heading, 1.15); }

	.nh-category-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
		margin-top: 28px !important;
	}

	body.snmd-v2 .nh-categories.hm .hm-need__link {
		min-height: 192px;
		padding: 16px 20px 14px;
	}

	body.snmd-v2 .nh-categories.hm .hm-need__title {
		font-size: 20px !important;
		line-height: 1.15 !important;
	}

	body.snmd-v2 .nh-categories.hm .hm-need__quote {
		margin-top: 7px;
		font-size: 14px;
		line-height: 1.35;
	}

	body.snmd-v2 .nh-categories.hm .hm-need__go {
		padding-top: 8px;
		font-size: 14px;
	}

	/* The dark section intentionally breaks out of Elementor's 18px gutter. */
	.nh-context .nh-wrap {
		width: calc(100% + 36px);
		max-width: none;
		margin-inline: -18px;
	}

	.nh-context__panel {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		padding: 38px 22px 40px;
		border-radius: 0;
	}

	.nh-context h2 { margin-top: 13px; font-size: 32px; }
	.nh-context__copy { gap: 14px; }
	.nh-context__copy p { font-size: 16px; line-height: 1.6; }

	.nh-responsible__panel {
		gap: 11px;
		padding: 18px 16px;
	}

	.nh-responsible__icon { width: 26px; height: 26px; }
	.nh-responsible__icon svg { width: 21px; height: 21px; }
	.nh-responsible h2 { font-size: 19px; }
	.nh-responsible__panel p { margin-top: 5px; font-size: 14px; line-height: 1.55; }

	.nh-shop__panel {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
		padding-top: 28px;
	}

	.nh-shop h2 { font-size: 30px; }
	.nh-shop__panel p { font-size: 16px; }
	.nh-shop .nh-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.nh *,
	.nh *::before,
	.nh *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
