/* ==========================================================================
   Naturalmente Marylin – base, header, footer, blog
   ========================================================================== */

/* Self-hosted Nunito Sans (variable). Files in assets/fonts/. */
@font-face {
	font-family: "Nunito Sans";
	font-style: normal;
	font-weight: 200 1000;
	font-display: swap;
	src: url("../fonts/nunito-sans-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/nunito-sans-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Nunito Sans";
	font-style: normal;
	font-weight: 200 1000;
	font-display: swap;
	src: url("../fonts/nunito-sans-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/nunito-sans-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--nm-primary: #fbb731;
	--nm-primary-dark: color-mix(in srgb, var(--nm-primary) 82%, #000);
	--nm-heading: #1b2a49;
	--nm-text: #404040;
	--nm-muted: #7a7a7a;
	--nm-footer-bg: #0f4670;
	--nm-footer-text: #fbb731;
	--nm-bg: #ffffff;
	--nm-soft: #f7f4ee;
	--nm-border: #e6e1d8;
	--nm-radius: 10px;
	--nm-radius-sm: 6px;
	--nm-shadow: 0 10px 30px rgba(27, 42, 73, .12);
	--nm-container: 1240px;
	--nm-gutter: 20px;
	--nm-font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--nm-nav-h: 52px;
	--nm-adminbar-h: 0px;
	--nm-ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

body {
	margin: 0;
	background: var(--nm-bg);
	color: var(--nm-text);
	font-family: var(--nm-font);
	font-size: 16px;
	line-height: 1.65;
	overflow-wrap: break-word;
}
body.nm-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
	color: var(--nm-heading);
	font-weight: 800;
	line-height: 1.25;
	margin: 0 0 .6em;
}
h1 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.25rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.3rem; }

p, ul, ol, figure, blockquote, table { margin: 0 0 1.2em; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--nm-heading); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--nm-primary-dark); }
:focus-visible { outline: 2px solid var(--nm-primary); outline-offset: 2px; }
hr { border: 0; border-top: 1px solid var(--nm-border); margin: 2em 0; }
blockquote { border-left: 4px solid var(--nm-primary); padding: .4em 1.2em; margin-left: 0; color: var(--nm-heading); font-style: italic; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .6em .8em; border-bottom: 1px solid var(--nm-border); text-align: left; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	top: 8px; left: 8px; z-index: 100000; padding: 10px 16px;
	background: var(--nm-heading); color: #fff; border-radius: var(--nm-radius-sm);
}

/* Forms and buttons */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"],
input[type="number"], input[type="tel"], input[type="date"], select, textarea {
	width: 100%;
	max-width: 100%;
	padding: .65em .9em;
	border: 1px solid var(--nm-border);
	border-radius: var(--nm-radius-sm);
	background: #fff;
	color: var(--nm-text);
	font: inherit;
	transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--nm-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--nm-primary) 25%, transparent);
}

button, .button, input[type="submit"], .wp-block-button__link, .wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: .75em 1.4em;
	border: 2px solid var(--nm-primary);
	border-radius: 999px;
	background: var(--nm-primary);
	color: var(--nm-heading);
	font: inherit;
	font-weight: 800;
	font-size: .92rem;
	line-height: 1.2;
	letter-spacing: .02em;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
}
button:hover, .button:hover, input[type="submit"]:hover, .wp-block-button__link:hover {
	background: var(--nm-heading);
	border-color: var(--nm-heading);
	color: #fff;
}
button:disabled, .button:disabled, .button.disabled { opacity: .55; cursor: not-allowed; }

.nm-icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	min-height: 44px;
	padding: 6px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--nm-heading);
	text-decoration: none;
	font-weight: 700;
}
.nm-icon-btn:hover { background: var(--nm-soft); color: var(--nm-heading); }

/* Layout */
.nm-container {
	width: 100%;
	max-width: calc(var(--nm-container) + var(--nm-gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--nm-gutter);
}
.nm-site-content { min-height: 50vh; }
.nm-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
	padding-top: 28px;
	padding-bottom: 64px;
}
@media (min-width: 992px) {
	.nm-layout--blog { grid-template-columns: minmax(0, 1fr) 300px; }
	.nm-no-blog-sidebar .nm-layout--blog { grid-template-columns: minmax(0, 1fr); }
	.nm-no-blog-sidebar .nm-layout--blog .nm-main { max-width: 860px; margin: 0 auto; width: 100%; }
}
.nm-layout--page .nm-main { max-width: 100%; }
.nm-main--full { padding: 0; }

.nm-grid { display: grid; gap: 28px; }
.nm-grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ==========================================================================
   Header
   ========================================================================== */

.nm-header { position: relative; z-index: 50; background: #fff; }
.nm-header__main { border-bottom: 1px solid var(--nm-border); }
.nm-header__row {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 96px;
}
.nm-branding { flex: 0 0 auto; }
.nm-branding img { display: block; max-height: 78px; width: auto; }
.nm-branding__title { font-size: 1.5rem; font-weight: 900; color: var(--nm-heading); text-decoration: none; }

.nm-header__search { flex: 1 1 auto; max-width: 640px; margin: 0 auto; }
.nm-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nm-menu-toggle, .nm-search-toggle { display: none; }

/* Search */
.nm-search {
	position: relative;
	display: flex;
	align-items: stretch;
	border: 2px solid var(--nm-primary);
	border-radius: 999px;
	background: #fff;
}
.nm-search__cat {
	flex: 0 0 auto;
	width: auto;
	max-width: 190px;
	border: 0;
	border-right: 1px solid var(--nm-border);
	border-radius: 999px 0 0 999px;
	background: var(--nm-soft);
	font-size: .9rem;
	font-weight: 700;
	color: var(--nm-heading);
	padding-left: 1.1em;
}
.nm-search__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent;
}
.nm-search__submit {
	flex: 0 0 auto;
	border-radius: 0 999px 999px 0;
	padding: 0 1.2em;
	border-width: 0;
}
.nm-search__results {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 60;
	max-height: 70vh;
	overflow: auto;
	background: #fff;
	border-radius: var(--nm-radius);
	box-shadow: var(--nm-shadow);
	padding: 6px;
}
.nm-search__item {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border-radius: var(--nm-radius-sm);
	text-decoration: none;
	color: var(--nm-heading);
}
.nm-search__item:hover, .nm-search__item:focus { background: var(--nm-soft); outline: none; }
.nm-search__item img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; }
.nm-search__name { font-weight: 700; line-height: 1.3; }
.nm-search__price { font-weight: 800; color: var(--nm-primary-dark); white-space: nowrap; }
.nm-search__none { margin: 10px; color: var(--nm-muted); }
.nm-search__all { display: block; padding: 10px; text-align: center; font-weight: 800; border-top: 1px solid var(--nm-border); margin-top: 4px; }

.nm-popular { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 6px; padding-left: 18px; font-size: .85rem; }
.nm-popular__label { font-weight: 700; color: var(--nm-muted); }
.nm-popular__list { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; padding: 0; list-style: none; }
.nm-popular__list li + li::before { content: "//"; margin: 0 6px; color: var(--nm-primary); font-weight: 700; }
.nm-popular__list a { color: var(--nm-text); text-decoration: none; }
.nm-popular__list a:hover { color: var(--nm-primary-dark); }

.nm-mobile-search { padding: 0 0 14px; }

/* Cart link */
.nm-cart-link { border-radius: 999px; padding: 6px 12px 6px 8px; }
.nm-cart-count {
	position: absolute;
	top: 2px;
	left: 26px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--nm-primary);
	color: var(--nm-heading);
	font-size: 11px;
	font-weight: 900;
	line-height: 19px;
	text-align: center;
}
.nm-cart-count[data-count="0"] { background: var(--nm-border); }
.nm-cart-total { margin-left: 8px; font-size: .95rem; font-weight: 800; }
.nm-cart-total .woocommerce-Price-amount { color: var(--nm-heading); }

/* Main navigation bar */
.nm-header__nav { background: #fff; border-bottom: 1px solid var(--nm-border); }
.nm-header__nav-row { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 52px; }
.nm-header__nav-cart { display: none; }
.nm-primary-nav { flex: 0 1 auto; }
.nm-menu { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.nm-menu > li { position: relative; }
.nm-menu a {
	display: block;
	padding: 14px 16px;
	color: var(--nm-heading);
	font-size: .9rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
}
.nm-menu > li > a { position: relative; }
.nm-menu > li > a::after {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 8px;
	height: 2px;
	background: var(--nm-primary);
	transform: scaleX(0);
	transition: transform .25s var(--nm-ease);
}
.nm-menu > li:hover > a::after,
.nm-menu > li.current-menu-item > a::after,
.nm-menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.nm-menu .menu-item-has-children > a { padding-right: 26px; }
.nm-menu .menu-item-has-children > a::before {
	content: "";
	position: absolute;
	right: 10px;
	top: 50%;
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
}
.nm-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 70;
	min-width: 240px;
	max-height: 70vh;
	overflow: auto;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border-top: 3px solid var(--nm-primary);
	border-radius: 0 0 var(--nm-radius) var(--nm-radius);
	box-shadow: var(--nm-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.nm-menu .sub-menu .sub-menu { top: 0; left: 100%; border-radius: var(--nm-radius); }
.nm-menu li:hover > .sub-menu,
.nm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nm-menu .sub-menu a { padding: 8px 20px; font-size: .9rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.nm-menu .sub-menu a:hover { background: var(--nm-soft); color: var(--nm-primary-dark); }

/* Language switcher */
.nm-lang { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nm-lang a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: var(--nm-radius-sm); font-size: .8rem; font-weight: 800; text-decoration: none; color: var(--nm-heading); }
.nm-lang .is-current a { background: var(--nm-soft); }

/* Sticky navigation */
.nm-nav-fixed .nm-header__nav-sentinel { height: var(--nm-nav-h); }
.nm-nav-fixed .nm-header__nav {
	position: fixed;
	top: var(--nm-adminbar-h);
	left: 0;
	right: 0;
	z-index: 80;
	box-shadow: 0 4px 18px rgba(27, 42, 73, .1);
	animation: nm-slide-down .3s var(--nm-ease);
}
.nm-nav-fixed .nm-header__nav-cart { display: block; }
@keyframes nm-slide-down { from { transform: translateY(-100%); } to { transform: none; } }

/* Responsive header */
@media (max-width: 991px) {
	.nm-header__row { min-height: 72px; gap: 8px; }
	.nm-menu-toggle, .nm-search-toggle { display: inline-flex; }
	.nm-branding { margin-right: auto; flex: 0 1 auto; min-width: 0; }
	.nm-branding img { max-height: 56px; max-width: 100%; height: auto; }
	.nm-branding__title { display: block; font-size: 1.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.nm-header__actions { flex: 0 0 auto; }
	.nm-header__search { display: none; }
	.nm-header__nav, .nm-header__nav-sentinel { display: none; }
	.nm-cart-total { display: none; }
	.nm-cart-link { padding: 6px; }
}
@media (min-width: 992px) {
	.nm-mobile-search { display: none; }
}

/* ==========================================================================
   Off-canvas panels, overlay, modal
   ========================================================================== */

.nm-overlay {
	position: fixed;
	inset: 0;
	z-index: 900;
	background: rgba(15, 25, 45, .5);
	opacity: 0;
	transition: opacity .3s;
}
.nm-overlay.is-open { opacity: 1; }

.nm-offcanvas {
	position: fixed;
	top: 0;
	bottom: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	width: min(400px, 92vw);
	background: #fff;
	box-shadow: var(--nm-shadow);
	transition: transform .32s var(--nm-ease);
}
.admin-bar .nm-offcanvas { top: var(--wp-admin--admin-bar--height, 0px); }
.nm-offcanvas--left { left: 0; transform: translateX(-102%); }
.nm-offcanvas--right { right: 0; transform: translateX(102%); }
.nm-offcanvas.is-open { transform: none; }
.nm-offcanvas__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px 14px 20px;
	border-bottom: 1px solid var(--nm-border);
}
.nm-offcanvas__head .nm-branding img { max-height: 48px; }
.nm-offcanvas__title { margin: 0; font-size: 1.15rem; font-weight: 900; color: var(--nm-heading); }
.nm-offcanvas__body { flex: 1 1 auto; overflow-y: auto; padding: 16px 20px 24px; }

.nm-mobile-menu, .nm-mobile-menu .sub-menu { margin: 0; padding: 0; list-style: none; }
.nm-mobile-menu li { position: relative; border-bottom: 1px solid var(--nm-border); }
.nm-mobile-menu a { display: block; padding: 13px 48px 13px 0; color: var(--nm-heading); font-weight: 800; text-decoration: none; }
.nm-mobile-menu .sub-menu { display: none; padding-left: 14px; border-top: 1px solid var(--nm-border); }
.nm-mobile-menu .sub-menu li:last-child { border-bottom: 0; }
.nm-mobile-menu .sub-menu a { font-weight: 600; }
.nm-mobile-menu li.is-open > .sub-menu { display: block; }
.nm-submenu-toggle {
	position: absolute;
	top: 4px;
	right: 0;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--nm-soft);
	color: var(--nm-heading);
}
.nm-submenu-toggle:hover { background: var(--nm-primary); color: var(--nm-heading); }
.nm-submenu-toggle svg { transition: transform .2s; }
.is-open > .nm-submenu-toggle svg { transform: rotate(180deg); }
.nm-offcanvas .nm-lang { margin-top: 18px; }

/* ==========================================================================
   Page headers, breadcrumb, pagination
   ========================================================================== */

.nm-page-header { margin-bottom: 28px; }
.nm-page-title { margin-bottom: .2em; }
.nm-archive-description { color: var(--nm-muted); max-width: 70ch; }
.nm-breadcrumb, .woocommerce-breadcrumb { margin: 0 0 12px; font-size: .85rem; color: var(--nm-muted); }
.nm-breadcrumb a, .woocommerce .woocommerce-breadcrumb a { color: var(--nm-muted); text-decoration: none; }
.nm-breadcrumb a:hover { color: var(--nm-primary-dark); }
.nm-sep { margin: 0 8px; color: var(--nm-primary); }

.nm-pagination, .woocommerce nav.woocommerce-pagination { margin-top: 40px; }
.nm-pagination .nav-links, .woocommerce nav.woocommerce-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; border: 0; margin: 0; padding: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.nm-pagination .page-numbers, .woocommerce nav.woocommerce-pagination ul li .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	border: 1px solid var(--nm-border);
	border-radius: 999px;
	color: var(--nm-heading);
	font-weight: 800;
	text-decoration: none;
}
.nm-pagination .page-numbers.current, .nm-pagination a.page-numbers:hover,
.woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover {
	background: var(--nm-primary);
	border-color: var(--nm-primary);
	color: var(--nm-heading);
}

/* ==========================================================================
   Blog
   ========================================================================== */

.nm-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--nm-border);
	border-radius: var(--nm-radius);
	transition: box-shadow .25s, transform .25s;
}
.nm-card:hover { box-shadow: var(--nm-shadow); transform: translateY(-3px); }
.nm-card__media { display: block; aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--nm-soft); }
.nm-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--nm-ease); }
.nm-card:hover .nm-card__media img { transform: scale(1.04); }
.nm-card__placeholder { display: block; height: 100%; background: linear-gradient(135deg, var(--nm-soft), #efe6d2); }
.nm-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.nm-card__cat {
	align-self: flex-start;
	margin-bottom: 10px;
	padding: 3px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--nm-primary) 22%, #fff);
	color: var(--nm-heading);
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none;
}
.nm-card__title { margin: 0 0 6px; font-size: 1.2rem; }
.nm-card__title a { color: inherit; text-decoration: none; }
.nm-card__title a:hover { color: var(--nm-primary-dark); }
.nm-card__date { font-size: .82rem; color: var(--nm-muted); }
.nm-card__excerpt { margin: 10px 0 14px; color: var(--nm-text); font-size: .95rem; }
.nm-card__excerpt p { margin: 0; }
.nm-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 800; text-decoration: none; color: var(--nm-heading); }
.nm-card__more:hover { color: var(--nm-primary-dark); }

.nm-single__header { margin-bottom: 22px; }
.nm-single__title { margin-bottom: .3em; }
.nm-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--nm-muted); font-size: .9rem; }
.nm-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.nm-meta a { color: var(--nm-muted); }
.nm-single__media { margin: 0 0 28px; }
.nm-single__media img { display: block; width: 100%; border-radius: var(--nm-radius); }

.nm-entry { font-size: 1.05rem; }
.nm-entry > * { max-width: 100%; }
.nm-entry img { border-radius: var(--nm-radius-sm); }
.nm-entry h2, .nm-entry h3 { margin-top: 1.6em; }
.nm-entry a { color: var(--nm-heading); text-decoration: underline; text-decoration-color: var(--nm-primary); }
/* Content already spans the container: wide blocks stay inside the gutter (cart and checkout blocks use alignwide). */
.alignwide { margin-left: 0; margin-right: 0; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.gallery-caption { font-size: .85rem; color: var(--nm-muted); }
.sticky .nm-card, .nm-card.sticky { box-shadow: inset 0 3px 0 var(--nm-primary); }
.bypostauthor > .comment-body .fn::after { content: " \2605"; color: var(--nm-primary); }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--nm-muted); text-align: center; }

.nm-single__footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin: 32px 0; padding: 18px 0; border-top: 1px solid var(--nm-border); border-bottom: 1px solid var(--nm-border); }
.nm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nm-tags a { padding: 4px 12px; border: 1px solid var(--nm-border); border-radius: 999px; font-size: .82rem; text-decoration: none; }
.nm-tags a:hover { border-color: var(--nm-primary); }

.nm-share { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.nm-share__label { font-weight: 800; color: var(--nm-heading); margin-right: 4px; font-size: .9rem; }
.nm-share__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--nm-soft);
	color: var(--nm-heading);
}
.nm-share__link:hover { background: var(--nm-primary); color: var(--nm-heading); }

.nm-postnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nm-postnav a { display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--nm-border); border-radius: var(--nm-radius); text-decoration: none; }
.nm-postnav a:hover { border-color: var(--nm-primary); }
.nm-postnav .nav-next { text-align: right; }
.nm-postnav__label { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--nm-muted); }
.nm-postnav__title { font-weight: 800; color: var(--nm-heading); }

.nm-related { margin-top: 48px; }
.nm-related__title { font-size: 1.4rem; }

.nm-comments { margin-top: 48px; }
.nm-comments__list { padding: 0; list-style: none; }
.nm-comments__list .children { list-style: none; padding-left: 24px; }
.nm-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--nm-border); }
.nm-comments .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comment-form label { display: block; font-weight: 700; margin-bottom: 4px; }

/* Sidebar & widgets */
.nm-sidebar .widget { margin-bottom: 32px; }
.widget-title {
	position: relative;
	margin-bottom: 16px;
	padding-bottom: 10px;
	font-size: 1rem;
	font-weight: 900;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.widget-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; border-radius: 3px; background: var(--nm-primary); }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget ul li { padding: 6px 0; border-bottom: 1px dashed var(--nm-border); }
.widget ul li:last-child { border-bottom: 0; }
.widget ul ul { padding-left: 14px; }
.widget a { text-decoration: none; }

.nm-none, .nm-404 { text-align: center; padding: 40px 0; }
.nm-404__code { margin: 0; font-size: clamp(4rem, 3rem + 6vw, 8rem); font-weight: 900; line-height: 1; color: var(--nm-primary); }
.nm-404 .nm-search { max-width: 560px; margin: 24px auto; }

/* ==========================================================================
   Footer
   ========================================================================== */

/* Envo colours (blue band, gold links, white titles) with a modern layout:
   brand column + one column per widget, credits bar at the bottom. */
.nm-footer { background: var(--nm-footer-bg); color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.65; }
.nm-footer a { color: var(--nm-footer-text); text-decoration: none; transition: color .2s, opacity .2s; }
.nm-footer a:hover, .nm-footer a:focus { color: #fff; }
.nm-footer__widgets { padding: 56px 0 24px; }
.nm-footer__grid { display: grid; gap: 32px 40px; grid-template-columns: minmax(0, 1fr); }
.nm-footer__area { display: contents; }
@media (min-width: 520px) {
	.nm-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nm-footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 992px) {
	.nm-footer__grid { grid-template-columns: repeat(var(--nm-fcols, 4), minmax(0, 1fr)); }
	.nm-footer__grid.has-brand { grid-template-columns: minmax(0, 1.35fr) repeat(var(--nm-wcols, 3), minmax(0, 1fr)); }
	.nm-footer__brand { grid-column: auto; padding-right: 12px; }
}
.nm-footer .widget { min-width: 0; margin: 0; padding: 0; border: 0; background: none; }
.nm-footer .widget p { margin: 0 0 9px; }
.nm-footer .widget strong { color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.nm-footer .widget p:first-child strong, .nm-footer .widget-title, .nm-footer .widget h2, .nm-footer .widget h3 {
	position: relative;
	display: block;
	margin: 0 0 16px;
	padding: 0 0 10px;
	border: 0;
	background: none;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.nm-footer .widget p:first-child strong::after, .nm-footer .widget-title::after, .nm-footer .widget h2::after, .nm-footer .widget h3::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 28px;
	height: 2px;
	border-radius: 2px;
	background: var(--nm-footer-text);
}
.nm-footer .widget-title::before { display: none; }
.nm-footer .widget ul { margin: 0; padding: 0; list-style: none; }
.nm-footer .widget ul li { margin: 0 0 9px; padding: 0; border: 0; }
.nm-footer .widget a:hover { padding-left: 2px; }
.nm-footer .widget img { display: inline-block; width: auto; height: auto; max-width: 100%; max-height: 40px; margin: 0 8px 6px 0; vertical-align: middle; }

.nm-footer__logo { display: inline-block; margin-bottom: 14px; color: #fff !important; font-size: 1.35rem; font-weight: 900; line-height: 1.2; }
.nm-footer__logo img { max-height: 64px; width: auto; }
.nm-footer__about { margin: 0 0 18px; max-width: 34ch; }
.nm-footer__contacts { margin: 0 0 18px; padding: 0; list-style: none; }
.nm-footer__contacts li { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.nm-footer__contacts .nm-icon { flex: none; color: var(--nm-footer-text); }
.nm-footer__contacts a { color: #fff; }
.nm-footer__contacts a:hover { color: var(--nm-footer-text); }
.nm-footer__social { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.nm-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 50%;
	color: #fff;
}
.nm-footer__social a:hover { border-color: var(--nm-footer-text); background: var(--nm-footer-text); color: var(--nm-footer-bg); }

.nm-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .14); }
.nm-footer__bottom-row { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 18px; padding-bottom: 18px; text-align: center; font-size: 13px; }
@media (min-width: 992px) {
	.nm-footer__bottom-row { flex-direction: row; justify-content: space-between; text-align: left; }
}
.nm-footer__credits { margin: 0; color: rgba(255, 255, 255, .72); }
.nm-footer__credits a { color: #fff; }
.nm-footer__menu-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }

.nm-to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 85;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--nm-primary);
	color: var(--nm-heading);
	box-shadow: var(--nm-shadow);
}
.nm-to-top:hover { background: var(--nm-heading); color: #fff; }
.nm-to-top[hidden] { display: none; }
