/* ==========================================================================
   Nili Tourchian — brand layer for Astra
   Colours map to Astra's global palette (Customize → Global → Colors), so
   palette edits in the Customizer flow through every component below.
   ========================================================================== */

:root {
	--nt-ink: var(--ast-global-color-0, #13233a);
	--nt-accent: var(--ast-global-color-1, #7e6036);
	--nt-heading: var(--ast-global-color-2, #13233a);
	--nt-text: var(--ast-global-color-3, #2e3440);
	--nt-bg: var(--ast-global-color-4, #ffffff);
	--nt-ivory: var(--ast-global-color-5, #f6f2ea);
	--nt-dark: var(--ast-global-color-6, #0e1a2b);
	--nt-line: var(--ast-global-color-7, #e7e0d4);
	--nt-brass: var(--ast-global-color-8, #a8844f);
	--nt-muted: #5b6472;
	--nt-on-dark: #f6f2ea;
	--nt-on-dark-muted: #b9c2cf;
	--nt-lease: #2e6a63;
	--nt-serif: "Newsreader", Georgia, "Times New Roman", serif;
	--nt-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--nt-radius: 4px;
	--nt-radius-lg: 10px;
	--nt-shadow-sm: 0 1px 2px rgba(14, 26, 43, 0.06), 0 1px 1px rgba(14, 26, 43, 0.04);
	--nt-shadow: 0 12px 32px -14px rgba(14, 26, 43, 0.28);
	--nt-shadow-lg: 0 32px 64px -24px rgba(14, 26, 43, 0.38);
	--nt-wrap: 1240px;
	--nt-gutter: clamp(16px, 4vw, 32px);
	--nt-section-y: clamp(56px, 8vw, 112px);
	--nt-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base typography ---------- */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, .entry-content h1, .entry-content h2, .entry-content h3 {
	letter-spacing: -0.015em;
	text-wrap: balance;
}

h4, h5, h6 {
	font-family: var(--nt-sans);
	letter-spacing: 0;
}

p {
	text-wrap: pretty;
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

:focus-visible {
	outline: 2px solid var(--nt-brass);
	outline-offset: 3px;
}

::selection {
	background: rgba(168, 132, 79, 0.25);
}

/* ---------- Header ---------- */

.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
	padding-left: 0.72em;
	padding-right: 0.72em;
	font-size: 15px;
}

.ast-header-button-1 .ast-custom-button {
	border-radius: 4px;
	padding: 13px 22px;
}

@media (max-width: 1240px) and (min-width: 922px) {
	/* The logo links home, so the "Home" item can go on narrower desktops. */
	.ast-builder-menu-1 .main-header-menu > .menu-item:first-child {
		display: none;
	}
	.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
		padding-left: 0.5em;
		padding-right: 0.5em;
		font-size: 14px;
	}
	.ast-header-button-1 .ast-custom-button {
		padding: 11px 16px;
		font-size: 14px;
		white-space: nowrap;
	}
	/* Logo steps down with the screen so the menu stays on one line. */
	header .custom-logo-link img {
		max-width: 170px;
		width: 170px;
	}
}

@media (max-width: 1080px) and (min-width: 922px) {
	.site-description {
		display: none;
	}
	.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
		padding-left: 0.42em;
		padding-right: 0.42em;
		font-size: 13.5px;
	}
	header .custom-logo-link img {
		max-width: 150px;
		width: 150px;
	}
}

@media (max-width: 1000px) and (min-width: 922px) {
	header .custom-logo-link img {
		max-width: 130px;
		width: 130px;
	}
}

@media (max-width: 960px) and (min-width: 922px) {
	.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
		padding-left: 0.36em;
		padding-right: 0.36em;
		font-size: 13px;
	}
	.ast-header-button-1 .ast-custom-button {
		padding: 10px 12px;
		font-size: 13px;
	}
}

.site-title {
	font-family: var(--nt-serif);
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.1;
}

.site-title a,
.site-title a:hover {
	color: var(--nt-heading);
	text-decoration: none;
}

.site-description {
	font-family: var(--nt-sans);
	font-size: 11px !important;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--nt-accent);
	margin-top: 4px;
}

.ast-above-header-bar,
.ast-above-header.ast-above-header-bar {
	font-size: 13px;
	letter-spacing: 0.01em;
}

.ast-above-header-bar a {
	text-decoration: none;
}

.nt-topbar {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	align-items: center;
	margin: 0;
}

.nt-topbar a {
	color: inherit;
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.nt-topbar a:hover {
	color: var(--nt-accent);
}

.nt-topbar svg {
	width: 14px;
	height: 14px;
	flex: none;
}

.main-header-menu .menu-link {
	font-weight: 500;
	letter-spacing: 0.005em;
}

.main-header-menu > .menu-item > .menu-link {
	position: relative;
}

.main-header-menu > .menu-item > .menu-link::after {
	content: "";
	position: absolute;
	left: 1em;
	right: 1em;
	bottom: 18px;
	height: 1px;
	background: var(--nt-brass);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s var(--nt-ease);
}

.main-header-menu > .menu-item:hover > .menu-link::after,
.main-header-menu > .current-menu-item > .menu-link::after,
.main-header-menu > .current-menu-ancestor > .menu-link::after {
	transform: scaleX(1);
}

.main-header-menu .sub-menu {
	border-top: 2px solid var(--nt-brass) !important;
	box-shadow: var(--nt-shadow);
	border-radius: 0 0 var(--nt-radius) var(--nt-radius);
}

.ast-header-button-1 .ast-custom-button {
	letter-spacing: 0.02em;
}

/* ---------- Layout helpers ---------- */

.nt-section {
	padding-top: var(--nt-section-y);
	padding-bottom: var(--nt-section-y);
}

.nt-section--tight {
	padding-top: calc(var(--nt-section-y) * 0.6);
	padding-bottom: calc(var(--nt-section-y) * 0.6);
}

.nt-section--ivory {
	background-color: var(--nt-ivory);
}

.nt-section--dark {
	background-color: var(--nt-dark);
	color: var(--nt-on-dark-muted);
}

.nt-section--dark h1,
.nt-section--dark h2,
.nt-section--dark h3,
.nt-section--dark h4 {
	color: var(--nt-on-dark);
}

.nt-section--dark a:not(.wp-block-button__link) {
	color: var(--nt-on-dark);
}

.nt-wrap {
	max-width: var(--nt-wrap);
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: var(--nt-gutter);
	padding-right: var(--nt-gutter);
	box-sizing: border-box;
}

.nt-narrow {
	max-width: 760px;
	margin-left: auto !important;
	margin-right: auto !important;
}

.nt-center {
	text-align: center;
}

.nt-center .nt-lead {
	margin-left: auto;
	margin-right: auto;
}

.nt-stack > * + * {
	margin-top: 1rem;
}

/* ---------- Type components ---------- */

.nt-eyebrow {
	font-family: var(--nt-sans);
	font-size: 12.5px !important;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--nt-accent);
	margin-bottom: 14px !important;
}

.nt-section--dark .nt-eyebrow,
.nt-hero .nt-eyebrow {
	color: #c8ae82;
}

.nt-lead {
	font-size: clamp(1.05rem, 1.2vw, 1.2rem);
	line-height: 1.65;
	color: var(--nt-muted);
	max-width: 62ch;
}

.nt-section--dark .nt-lead {
	color: var(--nt-on-dark-muted);
}

.nt-rule {
	width: 56px;
	height: 1px;
	border: 0;
	background: var(--nt-brass);
	margin: 22px 0 !important;
	opacity: 1;
}

.nt-center .nt-rule {
	margin-left: auto !important;
	margin-right: auto !important;
}

.nt-display {
	font-size: clamp(2.4rem, 5.2vw, 4.25rem) !important;
	line-height: 1.04 !important;
	font-weight: 500;
}

.nt-h2 {
	font-size: clamp(1.9rem, 3.4vw, 2.75rem) !important;
	line-height: 1.12 !important;
}

.nt-small {
	font-size: 0.875rem;
	color: var(--nt-muted);
}

/* ---------- Buttons ---------- */

.wp-block-button__link,
.ast-custom-button,
.ast-button,
button.ff-btn-submit,
.nt-btn {
	transition: background-color 0.2s var(--nt-ease), color 0.2s var(--nt-ease), border-color 0.2s var(--nt-ease), transform 0.2s var(--nt-ease), box-shadow 0.2s var(--nt-ease);
}

.wp-block-button__link:hover,
.nt-btn:hover {
	transform: translateY(-1px);
}

.wp-block-button.is-style-nt-accent .wp-block-button__link {
	background-color: var(--nt-accent);
	border-color: var(--nt-accent);
	color: #fff;
}

.wp-block-button.is-style-nt-accent .wp-block-button__link:hover {
	background-color: var(--nt-ink);
	border-color: var(--nt-ink);
}

.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-nt-outline .wp-block-button__link {
	background: transparent;
	color: var(--nt-ink);
	border: 1px solid currentColor;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-nt-outline .wp-block-button__link:hover {
	background: var(--nt-ink);
	border-color: var(--nt-ink);
	color: #fff;
}

.wp-block-button.is-style-nt-light .wp-block-button__link {
	background: #fff;
	color: var(--nt-ink);
	border: 1px solid #fff;
}

.wp-block-button.is-style-nt-light .wp-block-button__link:hover {
	background: var(--nt-ivory);
	border-color: var(--nt-ivory);
}

.wp-block-button.is-style-nt-ghost-light .wp-block-button__link {
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(2px);
}

.wp-block-button.is-style-nt-ghost-light .wp-block-button__link:hover {
	background: #fff;
	color: var(--nt-ink);
	border-color: #fff;
}

.nt-textlink a,
a.nt-textlink {
	font-weight: 600;
	text-decoration: none;
	color: var(--nt-ink);
	border-bottom: 1px solid var(--nt-brass);
	padding-bottom: 2px;
}

.nt-textlink a::after,
a.nt-textlink::after {
	content: "\00a0→"; /* non-breaking space keeps the arrow with the last word */
	transition: margin 0.2s var(--nt-ease);
}

.nt-textlink a:hover,
a.nt-textlink:hover {
	color: var(--nt-accent);
}

.nt-section--dark .nt-textlink a,
.nt-hero .nt-textlink a {
	color: #fff;
}

/* ---------- Hero & page banners (nili/hero block) ---------- */

.nt-hero {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	color: #fff;
	background: var(--nt-dark);
	isolation: isolate;
}

.nt-hero.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.nt-hero__media,
.nt-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -2;
}

.nt-hero__img {
	object-fit: cover;
	display: block;
}

.nt-hero__shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.nt-hero__inner {
	position: relative;
	width: 100%;
	max-width: var(--nt-wrap) !important; /* Astra removes max-width from children of non-group .alignfull blocks */
	margin: 0 auto;
	padding: 0 var(--nt-gutter);
	box-sizing: border-box;
}

.nt-hero__content {
	max-width: 660px;
}

.nt-hero h1,
.nt-hero h2 {
	color: #fff;
	margin-top: 0;
}

.nt-hero .nt-lead {
	color: rgba(246, 242, 234, 0.9);
	font-size: clamp(1.05rem, 1.35vw, 1.25rem);
}

.nt-hero .wp-block-buttons {
	margin-top: 30px;
	gap: 12px;
}

.nt-hero--home {
	min-height: min(88vh, 860px);
	padding: clamp(96px, 11vw, 140px) 0 clamp(150px, 15vw, 190px);
}

.nt-hero--home .nt-hero__shade {
	background: linear-gradient(90deg, rgba(8, 14, 25, 0.82) 0%, rgba(8, 14, 25, 0.55) 36%, rgba(8, 14, 25, 0.06) 70%, rgba(8, 14, 25, 0) 100%);
}

.nt-hero--banner {
	min-height: clamp(320px, 36vw, 470px);
	align-items: flex-end;
	padding: 90px 0 clamp(40px, 5vw, 64px);
}

.nt-hero--banner .nt-hero__shade {
	background: linear-gradient(0deg, rgba(8, 14, 25, 0.88) 0%, rgba(8, 14, 25, 0.5) 55%, rgba(8, 14, 25, 0.2) 100%);
}

.nt-hero--banner h1 {
	font-size: clamp(2.1rem, 4.4vw, 3.5rem) !important;
	line-height: 1.08 !important;
	margin-bottom: 8px !important;
}

.nt-hero--editor {
	min-height: 420px;
}

.nt-hero__links {
	margin-top: 22px !important;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	font-size: 0.95rem;
}

.nt-hero__links a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid rgba(200, 174, 130, 0.8);
	padding-bottom: 2px;
}

.nt-hero__links a:hover {
	color: #e9d9bb;
}

@media (max-width: 781px) {
	.nt-hero--home {
		min-height: 92svh;
		align-items: flex-start;
		padding: 56px 0 120px;
	}

	.nt-hero--home .nt-hero__shade {
		background: linear-gradient(180deg, rgba(8, 14, 25, 0.78) 0%, rgba(8, 14, 25, 0.35) 55%, rgba(8, 14, 25, 0.05) 80%);
	}

	.nt-hero--home .wp-block-buttons .wp-block-button {
		flex: 1 1 100%;
	}

	.nt-hero--home .wp-block-buttons .wp-block-button__link {
		width: 100%;
		box-sizing: border-box;
		text-align: center;
	}
}

/* Search panel that overlaps the hero */
.nt-search-overlap {
	position: relative;
	z-index: 3;
	margin-top: -96px !important;
}

@media (max-width: 781px) {
	.nt-search-overlap {
		margin-top: 0 !important;
		padding-top: 24px;
	}
}

/* ---------- Cards ---------- */

.nt-cards {
	gap: clamp(16px, 2vw, 24px) !important;
}

.nt-card {
	background: var(--nt-bg);
	border: 1px solid var(--nt-line);
	border-radius: var(--nt-radius-lg);
	padding: clamp(22px, 2.4vw, 32px) !important;
	height: 100%;
	box-sizing: border-box;
	transition: box-shadow 0.25s var(--nt-ease), transform 0.25s var(--nt-ease), border-color 0.25s var(--nt-ease);
	position: relative;
}

.nt-card:hover {
	box-shadow: var(--nt-shadow);
	transform: translateY(-3px);
	border-color: transparent;
}

.nt-card h3 {
	font-size: 1.45rem;
	margin: 14px 0 8px;
}

.nt-card p {
	color: var(--nt-muted);
	margin-bottom: 14px;
}

.nt-card .nt-textlink {
	margin-top: auto;
	margin-bottom: 0;
}

.wp-block-column > .nt-card {
	display: flex;
	flex-direction: column;
}

.nt-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--nt-ivory);
	color: var(--nt-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
}

.nt-icon svg {
	width: 22px;
	height: 22px;
}

/* Browse-by-type tiles */
.nt-tiles {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 12px !important;
	list-style: none;
	padding: 0 !important;
	margin: 0 !important;
}

.nt-tiles li {
	margin: 0;
}

.nt-tiles a {
	text-decoration: none !important;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 16px 18px;
	border: 1px solid var(--nt-line);
	border-radius: var(--nt-radius);
	background: var(--nt-bg);
	color: var(--nt-ink);
	text-decoration: none;
	font-weight: 500;
	transition: border-color 0.2s var(--nt-ease), background-color 0.2s var(--nt-ease), color 0.2s var(--nt-ease);
}

.nt-tiles a::after {
	content: "→";
	color: var(--nt-brass);
	transition: transform 0.2s var(--nt-ease);
}

.nt-tiles a:hover {
	border-color: var(--nt-ink);
	background: var(--nt-ink);
	color: #fff;
}

.nt-tiles a:hover::after {
	transform: translateX(3px);
	color: #c8ae82;
}

/* Feature split (image + copy) */
.nt-split {
	gap: clamp(28px, 5vw, 72px) !important;
	align-items: flex-start !important;
}

.nt-split.are-vertically-aligned-center {
	align-items: center !important;
}

.nt-split .wp-block-image img,
.nt-media img {
	border-radius: var(--nt-radius-lg);
	box-shadow: var(--nt-shadow-lg);
	width: 100%;
	height: auto;
	display: block;
}

.nt-checklist {
	list-style: none;
	padding-left: 0 !important;
	margin: 18px 0 26px !important;
}

.nt-checklist li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 10px;
}

.nt-checklist li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.5em;
	width: 14px;
	height: 8px;
	border-left: 2px solid var(--nt-brass);
	border-bottom: 2px solid var(--nt-brass);
	transform: rotate(-45deg);
}

.nt-columns-list {
	columns: 2;
	column-gap: 32px;
}

@media (max-width: 600px) {
	.nt-columns-list {
		columns: 1;
	}
}

/* Community cards */
.nt-community-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px !important;
}

.nt-community-card {
	position: relative;
	display: block;
	border-radius: var(--nt-radius-lg);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	color: #fff;
	text-decoration: none;
	background: var(--nt-dark);
	box-shadow: var(--nt-shadow-sm);
}

.nt-community-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--nt-ease);
}

.nt-community-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(10, 18, 31, 0.85) 0%, rgba(10, 18, 31, 0.1) 60%);
}

.nt-community-card span {
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 18px;
	z-index: 1;
	font-family: var(--nt-serif);
	font-size: 1.6rem;
	line-height: 1.1;
}

.nt-community-card small {
	display: block;
	font-family: var(--nt-sans);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #e3cfa9;
	margin-bottom: 6px;
}

.nt-community-card:hover img {
	transform: scale(1.04);
}

/* Portrait frame / pending media */
.nt-portrait {
	aspect-ratio: 4 / 5;
	border-radius: var(--nt-radius-lg);
	overflow: hidden;
	background: var(--nt-ivory);
	box-shadow: var(--nt-shadow-lg);
}

.nt-portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0; /* headshots: keep the top of the head, trim below */
	display: block;
}

/* Clearly marked placeholders for content awaiting owner approval */
.nt-pending {
	border: 1px dashed var(--nt-brass);
	background: repeating-linear-gradient(-45deg, rgba(168, 132, 79, 0.05) 0 12px, transparent 12px 24px), var(--nt-bg);
	border-radius: var(--nt-radius-lg);
	padding: 22px 24px !important;
	color: var(--nt-text);
}

.nt-pending strong:first-child {
	display: block;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nt-accent);
	margin-bottom: 6px;
}

/* Disclaimers */
.nt-disclaimer {
	font-size: 0.8125rem !important;
	line-height: 1.6;
	color: var(--nt-muted);
	border-top: 1px solid var(--nt-line);
	padding-top: 14px;
	margin-top: 22px !important;
}

.nt-section--dark .nt-disclaimer {
	color: var(--nt-on-dark-muted);
	border-top-color: rgba(255, 255, 255, 0.12);
}

/* Steps */
.nt-steps {
	counter-reset: nt-step;
	list-style: none;
	padding: 0 !important;
	margin: 24px 0 !important;
	display: grid;
	gap: 14px;
}

.nt-steps li {
	counter-increment: nt-step;
	position: relative;
	padding: 18px 20px 18px 70px;
	background: var(--nt-bg);
	border: 1px solid var(--nt-line);
	border-radius: var(--nt-radius-lg);
}

.nt-steps li::before {
	content: counter(nt-step, decimal-leading-zero);
	position: absolute;
	left: 20px;
	top: 16px;
	font-family: var(--nt-serif);
	font-size: 1.5rem;
	color: var(--nt-brass);
}

.nt-steps strong {
	display: block;
	color: var(--nt-heading);
	margin-bottom: 2px;
}

/* FAQ (core Details block) */
.wp-block-details {
	border-bottom: 1px solid var(--nt-line);
	padding: 18px 0;
}

.wp-block-details summary {
	font-weight: 600;
	color: var(--nt-heading);
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 32px;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: -3px;
	font-size: 1.4rem;
	color: var(--nt-brass);
	transition: transform 0.2s var(--nt-ease);
}

.wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

.wp-block-details > *:not(summary) {
	margin-top: 10px;
	color: var(--nt-muted);
}

/* CTA band trio */
.nt-cta-trio .wp-block-column {
	border-left: 1px solid rgba(255, 255, 255, 0.14);
	padding-left: clamp(18px, 2.4vw, 32px);
}

.nt-cta-trio .wp-block-column:first-child {
	border-left: 0;
	padding-left: 0;
}

@media (max-width: 781px) {
	.nt-cta-trio .wp-block-column {
		border-left: 0;
		padding-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.14);
		padding-top: 24px;
	}

	.nt-cta-trio .wp-block-column:first-child {
		border-top: 0;
		padding-top: 0;
	}
}

/* ---------- Blog / Market updates ---------- */

.nt-post-grid .wp-block-post-template {
	gap: 24px;
}

.nt-post-grid .wp-block-post {
	background: var(--nt-bg);
	border: 1px solid var(--nt-line);
	border-radius: var(--nt-radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.nt-post-grid .wp-block-post-featured-image {
	margin: 0;
}

.nt-post-grid .wp-block-post-featured-image img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.nt-post-grid .wp-block-post-title,
.nt-post-grid .wp-block-post-excerpt,
.nt-post-grid .wp-block-post-date,
.nt-post-grid .wp-block-post-terms {
	padding-left: 22px;
	padding-right: 22px;
}

.nt-post-grid .wp-block-post-title {
	font-size: 1.35rem;
	margin: 10px 0 6px;
}

.nt-post-grid .wp-block-post-title a {
	text-decoration: none;
	color: var(--nt-heading);
}

.nt-post-grid .wp-block-post-terms {
	margin-top: 18px;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.nt-post-grid .wp-block-post-terms a {
	color: var(--nt-accent);
	text-decoration: none;
}

.nt-post-grid .wp-block-post-date {
	font-size: 0.85rem;
	color: var(--nt-muted);
	padding-bottom: 22px;
	margin-top: auto;
}

/* ---------- Footer ---------- */

.site-footer {
	font-size: 0.9375rem;
}

.site-primary-footer-wrap,
.site-below-footer-wrap {
	background-color: var(--nt-dark) !important;
	color: var(--nt-on-dark-muted);
}

.site-below-footer-wrap {
	border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.site-footer .widget-title,
.site-footer h2,
.site-footer h3,
.site-footer .wp-block-heading {
	color: var(--nt-on-dark) !important;
	font-family: var(--nt-sans);
	font-size: 12.5px !important;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin-bottom: 16px;
}

.site-footer .nt-footer-brand {
	font-family: var(--nt-serif);
	font-size: 1.75rem !important;
	letter-spacing: -0.01em;
	text-transform: none;
	color: #fff;
	margin-bottom: 4px;
}

.site-footer .nt-footer-brand--logo {
	margin-bottom: 14px;
}

.nt-footer-logo {
	display: block;
	width: 230px;
	max-width: 100%;
	height: auto;
}

.site-footer a {
	color: var(--nt-on-dark);
	text-decoration: none;
}

.site-footer a:hover {
	color: #e3cfa9;
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer li {
	margin-bottom: 9px;
}

.site-footer .nt-footer-legal {
	font-size: 12.5px;
	line-height: 1.7;
	color: #8f9aab;
}

.site-footer .nt-footer-legal a {
	color: #c9d0da;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.25);
}

/* ---------- Forms (Fluent Forms skin) ---------- */

.fluentform .ff-el-group {
	margin-bottom: 18px;
}

.fluentform .ff-el-input--label label {
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--nt-heading);
	letter-spacing: 0.01em;
}

.fluentform .ff-el-form-control {
	border: 1px solid #cfc6b6 !important;
	border-radius: var(--nt-radius) !important;
	padding: 12px 14px !important;
	font-size: 1rem !important;
	color: var(--nt-text) !important;
	background-color: #fff !important;
	min-height: 48px;
	transition: border-color 0.2s var(--nt-ease), box-shadow 0.2s var(--nt-ease);
}

.fluentform .ff-el-form-control:focus {
	border-color: var(--nt-ink) !important;
	box-shadow: 0 0 0 3px rgba(19, 35, 58, 0.12) !important;
	outline: none;
}

.fluentform textarea.ff-el-form-control {
	min-height: 120px;
}

.fluentform .ff-btn-submit {
	white-space: normal !important;
	max-width: 100%;
	text-align: center;
	line-height: 1.3 !important;
}

.fluentform .ff-btn-submit,
.fluentform .ff-btn-submit:hover {
	background-color: var(--nt-ink) !important;
	border-color: var(--nt-ink) !important;
	color: #fff !important;
	border-radius: var(--nt-radius) !important;
	padding: 15px 30px !important;
	font-weight: 600 !important;
	font-size: 1rem !important;
	letter-spacing: 0.02em;
	min-height: 52px;
}

.fluentform .ff-btn-submit:hover {
	background-color: var(--nt-accent) !important;
	border-color: var(--nt-accent) !important;
}

.fluentform .ff-el-is-error .ff-el-form-control {
	border-color: #a63d32 !important;
}

.fluentform .error.text-danger,
.fluentform .ff-el-is-error .text-danger {
	color: #a63d32;
	font-size: 0.85rem;
}

.fluentform .ff-el-section-break .ff-el-section-title {
	font-family: var(--nt-serif);
	font-size: 1.35rem;
	margin: 12px 0 4px;
}

.fluentform .ff-el-section-break hr {
	border-color: var(--nt-line);
}

.fluentform .ff_t_c,
.fluentform .ff-el-tc,
.fluentform .ff-el-help-message {
	font-size: 0.85rem;
	color: var(--nt-muted);
}

.ff-message-success {
	border: 1px solid #c9dccc !important;
	background: #f2f8f3 !important;
	color: #1f4d2b !important;
	border-radius: var(--nt-radius-lg) !important;
	padding: 20px 22px !important;
	box-shadow: none !important;
}

.fluentform .nili-form-notice {
	font-size: 0.82rem;
	line-height: 1.55;
	color: var(--nt-muted);
	margin: 4px 0 0;
}

.fluentform .nili-consent .ff-el-form-check-label {
	font-size: 0.85rem;
	color: var(--nt-muted);
	line-height: 1.5;
}

.nt-form-card {
	background: var(--nt-bg);
	border: 1px solid var(--nt-line);
	border-radius: var(--nt-radius-lg);
	padding: clamp(22px, 3vw, 40px) !important;
	box-shadow: var(--nt-shadow);
}

/* ---------- Utilities ---------- */

.nt-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.nt-mt-0 {
	margin-top: 0 !important;
}

.nt-mb-0 {
	margin-bottom: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Latest posts grid (core Latest Posts block) ---------- */

.wp-block-latest-posts.nt-latest.is-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	padding: 0 !important;
	margin: 24px 0 0 !important;
}

.wp-block-latest-posts.nt-latest.is-grid li {
	width: auto !important;
	margin: 0 !important;
	background: var(--nt-bg);
	border: 1px solid var(--nt-line);
	border-radius: var(--nt-radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.25s var(--nt-ease), transform 0.25s var(--nt-ease);
}

.wp-block-latest-posts.nt-latest.is-grid li:hover {
	box-shadow: var(--nt-shadow);
	transform: translateY(-3px);
}

.nt-latest .wp-block-latest-posts__featured-image {
	margin: 0 !important;
}

.nt-latest .wp-block-latest-posts__featured-image img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}

.nt-latest .wp-block-latest-posts__post-title {
	font-family: var(--nt-serif);
	font-size: 1.3rem;
	line-height: 1.25;
	color: var(--nt-heading);
	text-decoration: none !important;
	padding: 18px 20px 4px;
	display: block;
}

.nt-latest .wp-block-latest-posts__post-date {
	font-size: 0.8rem;
	color: var(--nt-muted);
	padding: 0 20px;
	order: 3;
	margin-top: auto;
	padding-bottom: 18px;
}

.nt-latest .wp-block-latest-posts__post-excerpt {
	color: var(--nt-muted);
	font-size: 0.95rem;
	padding: 6px 20px 14px;
	margin: 0;
}

@media (max-width: 900px) {
	.wp-block-latest-posts.nt-latest.is-grid {
		grid-template-columns: 1fr;
	}
}

/* Community pages: icon cards spaced in columns */
.nt-cards .wp-block-column > .nt-card + .nt-card {
	margin-top: 18px;
	height: auto;
}

/* Search pages */
.nt-search-head {
	padding-bottom: 8px !important;
}

.nt-search-head h1 {
	margin-bottom: 6px !important;
}

.nt-search-page {
	padding-bottom: var(--nt-section-y);
}

.nt-search-head .nt-tiles {
	margin-top: 16px !important;
}

/* Review-only placeholders: visible on staging and while editing in Elementor, hidden on the live site. */
body:not(.nili-staging):not(.elementor-editor-active) .nt-pending,
body:not(.nili-staging):not(.elementor-editor-active) .nt-testimonials,
body:not(.nili-staging):not(.elementor-editor-active) .nt-portrait--pending figcaption {
	display: none !important;
}

body.elementor-editor-active:not(.nili-staging) .nt-pending::before {
	content: "Visible only while editing \2014  hidden on the live site";
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nt-muted);
	margin-bottom: 8px;
}

/* ==========================================================================
   Elementor pages. Layout, colours and type are set in Elementor itself
   (Site Settings → Global Colors / Global Fonts); these rules only cover
   what Elementor has no control for, keyed to classes set in each widget's
   Advanced → CSS Classes.
   ========================================================================== */

/* Banner section with the Nili "Banner image" widget as its first child. */
.nt-el-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.elementor-widget-nili-hero-image {
	position: absolute !important;
	inset: 0;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	z-index: -1;
}

.nt-hero-layer,
.nt-hero-layer .nt-hero__media {
	position: absolute;
	inset: 0;
}

.nt-hero-layer .nt-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nt-hero-layer--home .nt-hero__shade {
	background: linear-gradient(90deg, rgba(8, 14, 25, 0.82) 0%, rgba(8, 14, 25, 0.55) 36%, rgba(8, 14, 25, 0.06) 70%, rgba(8, 14, 25, 0) 100%);
}

.nt-hero-layer--banner .nt-hero__shade {
	background: linear-gradient(0deg, rgba(8, 14, 25, 0.88) 0%, rgba(8, 14, 25, 0.5) 55%, rgba(8, 14, 25, 0.2) 100%);
}

@media (max-width: 767px) {
	.nt-hero-layer--home .nt-hero__shade {
		background: linear-gradient(180deg, rgba(8, 14, 25, 0.78) 0%, rgba(8, 14, 25, 0.35) 55%, rgba(8, 14, 25, 0.05) 80%);
	}
}

/* Nili block widgets fill their column. With Elementor's automatic width the browser
   measures their height at a narrower width, so grids and 4:5 portraits spill into
   the next section on phones. A width set in Elementor still takes priority. */
.e-con .elementor-widget-nili-search-form,
.e-con .elementor-widget-nili-search,
.e-con .elementor-widget-nili-listings,
.e-con .elementor-widget-nili-open-houses,
.e-con .elementor-widget-nili-community-cards,
.e-con .elementor-widget-nili-latest-posts,
.e-con .elementor-widget-nili-portrait,
.e-con .elementor-widget-nili-lead-form,
.e-con .elementor-widget-nili-calculator,
.e-con .elementor-widget-nili-contact-card,
.e-con .elementor-widget-nili-amenity-map,
.e-con .elementor-widget-nili-disclaimer,
.e-con .elementor-widget-nili-service-areas {
	width: 100%;
}

/* Text Editor widgets: no stray space above the first or below the last paragraph. */
.elementor-widget-text-editor > :first-child,
.elementor-widget-text-editor .elementor-widget-container > :first-child {
	margin-top: 0;
}

.elementor-widget-text-editor > :last-child,
.elementor-widget-text-editor .elementor-widget-container > :last-child {
	margin-bottom: 0;
}

/* Arrow text links ("See all featured listings →"): CSS class nt-textlink. */
.elementor-widget.nt-textlink p {
	margin: 0;
}

/* Two underlined links under the banner buttons: CSS class nt-el-links. */
.nt-el-links p {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin: 0;
	font-size: 0.95rem;
}

.nt-el-links a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid rgba(200, 174, 130, 0.8);
	padding-bottom: 2px;
}

.nt-el-links a:hover {
	color: #e9d9bb;
}

/* Tick list: CSS class nt-el-checklist on a Text Editor with a bulleted list. */
.nt-el-checklist ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.nt-el-checklist li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 10px;
}

.nt-el-checklist li:last-child {
	margin-bottom: 0;
}

.nt-el-checklist li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.5em;
	width: 14px;
	height: 8px;
	border-left: 2px solid var(--nt-brass);
	border-bottom: 2px solid var(--nt-brass);
	transform: rotate(-45deg);
}

/* Link tiles ("Browse by type"): CSS class nt-el-tiles on a Text Editor with a list of links. */
.nt-el-tiles ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.nt-el-tiles li {
	margin: 0;
}

.nt-el-tiles a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	height: 100%;
	box-sizing: border-box;
	padding: 16px 18px;
	border: 1px solid var(--nt-line);
	border-radius: var(--nt-radius);
	background: var(--nt-bg);
	color: var(--nt-ink);
	font-weight: 500;
	text-decoration: none !important;
	transition: border-color 0.2s var(--nt-ease), background-color 0.2s var(--nt-ease), color 0.2s var(--nt-ease);
}

.nt-el-tiles a::after {
	content: "\2192";
	color: var(--nt-brass);
	transition: transform 0.2s var(--nt-ease);
}

.nt-el-tiles a:hover {
	border-color: var(--nt-ink);
	background: var(--nt-ink);
	color: #fff;
}

.nt-el-tiles a:hover::after {
	transform: translateX(3px);
	color: #c8ae82;
}

/* Cards with a soft shadow on hover (no lift, so a row of cards always lines up):
   CSS class nt-el-card on a container. */
.nt-el-card {
	transition: box-shadow 0.25s var(--nt-ease), border-color 0.25s var(--nt-ease);
}

.nt-el-card:hover {
	box-shadow: var(--nt-shadow) !important;
	border-color: transparent !important;
}

.elementor-button {
	transition: background-color 0.2s var(--nt-ease), color 0.2s var(--nt-ease), border-color 0.2s var(--nt-ease), transform 0.2s var(--nt-ease);
}

.elementor-button:hover {
	transform: translateY(-1px);
}

/* Shown only in the Elementor editor when a Nili widget has nothing to display yet. */
.nt-el-empty {
	margin: 0;
	padding: 18px 20px;
	border: 1px dashed var(--nt-line);
	border-radius: var(--nt-radius-lg);
	color: var(--nt-muted);
	font-size: 0.9rem;
	text-align: center;
}
