/**
 * Neighborhood Disruptors Core -- frontend styles.
 *
 * Scoped entirely to .nd-* classes. Never redeclares body, header,
 * nav, footer, or any Listeo/theme selector -- Listeo's own
 * brightness, dimensional cards, and controls are untouched outside
 * the ND content areas this plugin renders.
 */

:root {
	--nd-pearl: #f7f3ed;
	--nd-ivory: #fffdf8;
	--nd-stone: #e9e2d8;
	--nd-ink: #151613;
	--nd-soft-ink: #343630;
	--nd-muted: #727068;
	--nd-champagne: #b99b62;
	--nd-champagne-light: #dcc99d;
	--nd-plum: #493246;
	--nd-sage: #69796d;
	--nd-linen: #eee7dc;
}

/* ---- Shared card / grid primitives ---------------------------------- */

.nd-related-grid,
.nd-stories-grid,
.nd-creators-grid,
.nd-explore-grid,
.nd-community-feed__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 16px 0 32px;
}

@media (max-width: 900px) {
	.nd-related-grid,
	.nd-stories-grid,
	.nd-creators-grid,
	.nd-explore-grid,
	.nd-community-feed__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.nd-related-grid,
	.nd-stories-grid,
	.nd-creators-grid,
	.nd-explore-grid,
	.nd-community-feed__grid {
		grid-template-columns: 1fr;
	}
}

.nd-related-card,
.nd-story-card,
.nd-creator-card,
.nd-explore-card,
.nd-topic-card {
	display: block;
	background: var(--nd-ivory);
	border: 1px solid var(--nd-stone);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
}

.nd-related-card__image,
.nd-explore-card__image {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--nd-stone);
}

.nd-related-card__image img,
.nd-explore-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nd-related-card__title,
.nd-explore-card__title,
.nd-story-card h3 {
	display: block;
	padding: 14px 16px 4px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
	line-height: 1.25;
	color: var(--nd-ink);
}

.nd-related-card__label {
	display: block;
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nd-champagne);
	margin-bottom: 4px;
}

.nd-product-card__price,
.nd-explore-card__price {
	display: block;
	padding: 0 16px 14px;
	font-size: 14px;
	color: var(--nd-muted);
}

.nd-related-heading {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 22px;
	color: var(--nd-ink);
	border-bottom: 1px solid var(--nd-stone);
	padding-bottom: 8px;
	margin: 40px 0 16px;
}

.nd-empty-state {
	color: var(--nd-muted);
	font-style: italic;
	padding: 20px 0;
}

/* ---- Kicker / typography helpers ------------------------------------- */

.nd-kicker {
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nd-champagne);
	margin-bottom: 8px;
}

/* ---- Story ------------------------------------------------------------ */

.nd-story-hero__media img {
	width: 100%;
	height: auto;
	display: block;
}

.nd-story-hero__text {
	max-width: 760px;
	margin: 24px auto 0;
	text-align: center;
}

.nd-story-headline {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(28px, 4vw, 46px);
	line-height: 1.1;
	color: var(--nd-ink);
	margin: 0 0 12px;
}

.nd-story-dek {
	font-size: 18px;
	color: var(--nd-soft-ink);
}

.nd-story-body {
	max-width: 720px;
	margin: 32px auto;
	font-size: 17px;
	line-height: 1.7;
	color: var(--nd-soft-ink);
}

/* ---- Creator card / block ---------------------------------------------- */

.nd-creator-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	max-width: 420px;
	margin: 16px auto 32px;
}

.nd-creator-card__image img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

.nd-creator-card__name {
	display: block;
	font-weight: 600;
	color: var(--nd-ink);
}

.nd-creator-card__title {
	display: block;
	font-size: 13px;
	color: var(--nd-muted);
}

.nd-creator-hero {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.nd-creator-hero__portrait img {
	width: 160px;
	height: 160px;
	object-fit: cover;
	border-radius: 50%;
}

.nd-creator-role {
	color: var(--nd-champagne);
	font-weight: 600;
}

.nd-creator-location {
	color: var(--nd-muted);
}

.nd-creator-role-tags {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	margin: 10px 0;
}

.nd-creator-role-tags li {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: 1px solid var(--nd-stone);
	padding: 4px 10px;
	color: var(--nd-soft-ink);
}

.nd-creator-actions a {
	display: inline-block;
	margin-right: 12px;
	padding: 8px 16px;
	border: 1px solid var(--nd-ink);
	color: var(--nd-ink);
	text-decoration: none;
	font-size: 13px;
}

/* ---- Recipe ------------------------------------------------------------ */

.nd-breadcrumbs {
	font-size: 12px;
	color: var(--nd-muted);
	margin-bottom: 16px;
}
.nd-breadcrumbs a { color: var(--nd-muted); }

/* ---- Topics / channels -------------------------------------------------- */

.nd-topics-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0 32px;
}

.nd-topic-card {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 1px solid var(--nd-stone);
	background: var(--nd-ivory);
	text-decoration: none;
	color: var(--nd-ink);
	font-size: 13px;
}

.nd-topic-card__count {
	font-size: 11px;
	color: var(--nd-muted);
}

/* ---- Community ----------------------------------------------------------- */

.nd-community-feed__post {
	background: var(--nd-ivory);
	border: 1px solid var(--nd-stone);
}

.nd-community-feed__image img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
	display: block;
}

.nd-community-feed__body {
	padding: 14px 16px;
}

.nd-community-feed__author {
	font-size: 12px;
	color: var(--nd-muted);
}

.nd-community-pathway {
	margin-top: 40px;
	padding: 24px;
	background: var(--nd-linen);
	text-align: center;
}

.nd-community-submit form input,
.nd-community-submit form textarea {
	width: 100%;
	padding: 8px;
	border: 1px solid var(--nd-stone);
	margin-bottom: 10px;
}

.nd-community-submit form button {
	padding: 10px 20px;
	background: var(--nd-ink);
	color: var(--nd-ivory);
	border: none;
	cursor: pointer;
}

/* ---- Experience relationship section (appended to Listeo listing) ------- */

.nd-experience-relationships {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--nd-stone);
}

.nd-story-pull-quote {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 26px;
	line-height: 1.4;
	color: var(--nd-plum);
	border-left: 3px solid var(--nd-champagne);
	padding-left: 24px;
	margin: 32px auto;
	max-width: 640px;
	font-style: italic;
}

.nd-community-pathway__link {
	display: inline-block;
	margin: 8px 0 16px;
	color: var(--nd-champagne);
	font-weight: 600;
}

/* ---- World landing / Culinary World / Experiences landing ------------ */

.nd-world-hero {
	text-align: center;
	margin-bottom: 40px;
}

.nd-world-hero__link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.nd-world-hero__media img {
	width: 100%;
	height: auto;
	display: block;
	margin-bottom: 20px;
}

.nd-world-hero h1 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(28px, 4vw, 48px);
	color: var(--nd-ink);
}

.nd-world-hero--text-only {
	padding: 40px 0;
	background: var(--nd-pearl);
}

.nd-world-section {
	margin-bottom: 48px;
}

.nd-world-section h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 26px;
	color: var(--nd-ink);
	border-bottom: 1px solid var(--nd-stone);
	padding-bottom: 10px;
	margin-bottom: 20px;
}

/* ---- Culinary Community page ------------------------------------------- */

.nd-community-hero {
	text-align: center;
	padding: 40px 0;
}

.nd-community-hero h1 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(28px, 4vw, 44px);
	color: var(--nd-ink);
}

.nd-community-hero__dek {
	color: var(--nd-champagne);
	letter-spacing: 0.04em;
}

.nd-community-post-cta {
	max-width: 480px;
	margin: 0 auto 48px;
}

.nd-community-section {
	margin-bottom: 48px;
}

.nd-community-section h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	color: var(--nd-ink);
	margin-bottom: 16px;
}

.nd-community-support {
	background: var(--nd-linen);
	padding: 24px;
	text-align: center;
}

/* ======================================================================
   v1.3.0 — Composition fixes based on live QA:
   - constrained container instead of full-bleed width
   - hero stacks (image full-width, then text) instead of a side-by-side
     split that leaves a hollow, oversized text column
   - rail collapses completely (main goes full-width) when it has no
     content at all, instead of reserving an empty column
   - Community submission redesigned as a contained card
   These rules intentionally come after the v1.1/v1.2 rules above and
   override them via the cascade, rather than rewriting the whole file.
   ====================================================================== */

.nd-story,
.nd-creator-profile,
.nd-culinary-world,
.nd-culinary-community,
.nd-experiences-landing {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

/* Community submission: a contained card, not a bare unstyled form
   dominating the page. */
.nd-community-pathway {
	max-width: 640px;
	margin: 48px auto 0;
	padding: 32px;
	background: var(--nd-ivory);
	border: 1px solid var(--nd-stone);
	text-align: center;
	border-radius: 4px;
}

.nd-community-pathway p {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 20px;
	color: var(--nd-ink);
	margin: 0 0 6px;
}

.nd-community-submit {
	max-width: 420px;
	margin: 20px auto 0;
	text-align: left;
}

.nd-community-submit-message {
	background: var(--nd-linen);
	padding: 12px 16px;
	margin-bottom: 16px;
	font-size: 14px;
	color: var(--nd-soft-ink);
	border-radius: 4px;
}

.nd-community-submit form {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nd-community-submit form label {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nd-muted);
	margin-bottom: 4px;
	display: block;
}

.nd-community-submit form input,
.nd-community-submit form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--nd-stone);
	border-radius: 3px;
	font-family: inherit;
	font-size: 14px;
	box-sizing: border-box;
	margin-bottom: 14px;
	background: var(--nd-ivory);
}

.nd-community-submit form input:focus,
.nd-community-submit form textarea:focus {
	outline: none;
	border-color: var(--nd-champagne);
}

.nd-community-submit form button {
	align-self: center;
	padding: 12px 32px;
	background: var(--nd-ink);
	color: var(--nd-ivory);
	border: none;
	border-radius: 3px;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.nd-community-submit form button:hover {
	background: var(--nd-plum);
}

.nd-community-submit-login {
	text-align: center;
	color: var(--nd-muted);
	font-style: italic;
}

/* ======================================================================
   Shared (non-Recipe) primitives.

   These rules previously lived inside the superseded v1.4.0/v1.6.0 Recipe
   blocks. They are NOT Recipe presentation: they style the shared
   .nd-button family, the ND Culinary Advantage module, and the compact
   rail listing helpers emitted by nd_core_render_rail_listings(), which
   other ND surfaces still render. They are preserved verbatim here so
   nothing loses styling when the rejected Recipe CSS is removed.
   ====================================================================== */

.nd-button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 15px;border:1px solid var(--nd-stone);background:var(--nd-ivory);color:var(--nd-ink);text-decoration:none;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;cursor:pointer;border-radius:4px}
.nd-button--gold{background:var(--nd-champagne)!important;border-color:var(--nd-champagne)!important;color:var(--nd-ink)!important}
.nd-button--dark{background:#071924!important;border-color:#071924!important;color:#fff!important}

.nd-advantage__heading {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 10px;
	font-family: var(--nd-ui, Arial, sans-serif);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
}

.nd-advantage__mark {
	color: var(--nd-champagne);
	font-size: 8px;
}

.nd-advantage__list {
	list-style: none;
	margin: 0 0 13px;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	width: 100%;
	gap: 5px;
}

.nd-advantage__list li {
	position: relative;
	padding-left: 13px;
	width: 100%;
	max-width: 100%;
	font-size: 11px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.82);
}

.nd-advantage__list li::before {
	content: "\2022";
	position: absolute;
	left: 0;
	color: var(--nd-champagne);
}

.nd-advantage__cta {
	display: flex;
	width: 100%;
	min-height: 34px;
	background: var(--nd-champagne) !important;
	border-color: var(--nd-champagne) !important;
	color: var(--nd-ink) !important;
}

.nd-button--outline-light {
	background: transparent !important;
	border-color: rgba(255, 255, 255, 0.55) !important;
	color: #fff !important;
}

.nd-button--outline-light:hover {
	border-color: #fff !important;
}

.nd-rail-list {
	display: grid;
	gap: 10px;
}

.nd-rail-card {
	background: var(--nd-ivory);
	border: 1px solid var(--nd-stone);
	border-radius: 4px;
	overflow: hidden;
}

.nd-rail-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--nd-stone);
	overflow: hidden;
}

.nd-rail-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nd-rail-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--nd-pearl), var(--nd-stone));
}

.nd-rail-card__body {
	padding: 10px 11px 11px;
}

.nd-rail-card__label {
	display: block;
	font-size: 9px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nd-champagne);
	margin-bottom: 4px;
}

.nd-rail-card__title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 14px;
	line-height: 1.3;
	margin: 0;
	font-weight: 500;
}

.nd-rail-card__title a {
	color: var(--nd-ink);
	text-decoration: none;
}

.nd-rail-card__title a:hover {
	color: var(--nd-champagne);
}

.nd-rail-card__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin: 7px 0 0;
	font-size: 10px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--nd-muted);
}

.nd-rail-card__cta {
	margin-top: 10px;
	width: 100%;
	min-height: 30px;
	padding: 6px 8px;
	font-size: 9px;
	letter-spacing: 0.06em;
}

.nd-rail-row {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 14px;
	align-items: center;
	gap: 10px;
	padding: 8px;
	background: var(--nd-ivory);
	border: 1px solid var(--nd-stone);
	border-radius: 4px;
	text-decoration: none;
	color: var(--nd-ink);
}

.nd-rail-row:hover {
	border-color: var(--nd-champagne);
}

.nd-rail-row__media {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 3px;
	overflow: hidden;
	background: var(--nd-stone);
}

.nd-rail-row__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nd-rail-row__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--nd-pearl), var(--nd-stone));
}

.nd-rail-row__body {
	display: block;
	min-width: 0;
}

.nd-rail-row__label {
	display: block;
	font-size: 9px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nd-champagne);
	margin-bottom: 3px;
}

.nd-rail-row__title {
	display: block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 13px;
	line-height: 1.25;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nd-rail-row__meta {
	display: block;
	margin-top: 4px;
	font-size: 10px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--nd-muted);
}

.nd-rail-row__meta > span {
	margin-right: 4px;
}

.nd-rail-row__chevron {
	font-size: 18px;
	line-height: 1;
	color: var(--nd-champagne);
	text-align: right;
}
