/*
 * Nature Explorer Stories
 * Theme-aware styles for GoWilds and compatible WordPress themes.
 */
:root {
	--ne-ink: #202b2d;
	--ne-muted: #687274;
	--ne-line: #e4e8e6;
	--ne-paper: #fbfcfa;
	--ne-sage: #e7efe7;
	--ne-forest: #224c3d;
	--ne-orange: #e88a48;
	--ne-shadow: 0 20px 60px rgba(31, 57, 48, .1);
}

.ne-stories-page {
	color: var(--ne-ink);
	background: var(--ne-paper);
	font-family: inherit;
}

.ne-stories-page a {
	color: inherit;
}

.ne-stories-page .container {
	max-width: 1180px;
}

.ne-stories-hero {
	position: relative;
	overflow: hidden;
	background: var(--ne-forest);
	color: #fff;
}

.ne-stories-hero .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	min-height: 430px;
}

.ne-stories-hero-copy {
	position: relative;
	z-index: 1;
	max-width: 670px;
	padding: 72px 0;
}

.ne-eyebrow {
	display: block;
	margin-bottom: 12px;
	color: var(--ne-orange);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.ne-stories-hero h1,
.ne-story-single h1,
.ne-form-header h1,
.ne-auth-card h1,
.ne-account-header h1,
.ne-contributor-page h1 {
	margin: 0;
	color: inherit;
	font-size: clamp(38px, 5vw, 68px);
	font-weight: 600;
	letter-spacing: -.045em;
	line-height: 1.02;
}

.ne-stories-hero p {
	max-width: 570px;
	margin: 24px 0 30px;
	color: rgba(255, 255, 255, .75);
	font-size: 17px;
	line-height: 1.75;
}

.ne-stories-hero-mark {
	display: grid;
	width: 300px;
	height: 300px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 50%;
	place-items: center;
	color: rgba(255, 255, 255, .3);
	font-size: 58px;
	font-weight: 700;
	letter-spacing: -.08em;
	transform: rotate(-12deg);
}

.ne-stories-hero-mark:before,
.ne-stories-hero-mark:after {
	position: absolute;
	width: 420px;
	height: 420px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 50%;
	content: "";
}

.ne-stories-hero-mark:after {
	width: 190px;
	height: 190px;
}

.ne-stories-container,
.ne-story-single,
.ne-contributor-page,
.ne-account-page,
.ne-submit-page {
	padding-top: 82px;
	padding-bottom: 90px;
}

.ne-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
}

.ne-section-heading h2 {
	margin: 0;
	font-size: 34px;
	font-weight: 600;
	letter-spacing: -.035em;
	line-height: 1.1;
}

.ne-story-featured {
	margin-bottom: 84px;
}

.ne-story-discovery {
	margin-bottom: 84px;
}

.ne-story-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.ne-story-card {
	overflow: hidden;
	border: 1px solid var(--ne-line);
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(31, 57, 48, .03);
	transition: box-shadow .25s ease, transform .25s ease;
}

.ne-story-card:hover {
	box-shadow: var(--ne-shadow);
	transform: translateY(-4px);
}

.ne-story-card-image {
	position: relative;
	display: block;
	height: 230px;
	overflow: hidden;
	background: var(--ne-sage);
}

.ne-story-card-featured {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
}

.ne-story-card-featured .ne-story-card-image {
	height: 420px;
}

.ne-story-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.ne-story-card:hover .ne-story-card-image img {
	transform: scale(1.04);
}

.ne-card-placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	color: rgba(34, 76, 61, .35);
	font-size: 48px;
	font-weight: 700;
	letter-spacing: -.08em;
}

.ne-featured-label {
	position: absolute;
	top: 18px;
	left: 18px;
	padding: 8px 11px;
	border-radius: 2px;
	background: var(--ne-orange);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.ne-story-card-body {
	padding: 25px 26px 27px;
}

.ne-story-card-kicker {
	display: flex;
	gap: 8px;
	margin-bottom: 13px;
	color: var(--ne-orange);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ne-story-card h3 {
	margin: 0 0 12px;
	font-size: 23px;
	font-weight: 600;
	letter-spacing: -.025em;
	line-height: 1.2;
}

.ne-story-card h3 a {
	text-decoration: none;
}

.ne-story-card p {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 24px;
	color: var(--ne-muted);
	font-size: 14px;
	line-height: 1.7;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.ne-story-card-meta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-top: 17px;
	border-top: 1px solid var(--ne-line);
	color: var(--ne-muted);
	font-size: 12px;
}

.ne-story-card-meta span:last-child {
	color: var(--ne-forest);
	font-weight: 600;
}

.ne-pill-list,
.ne-destination-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ne-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 15px;
	border: 1px solid var(--ne-line);
	border-radius: 100px;
	background: #fff;
	color: var(--ne-forest);
	font-size: 13px;
	font-weight: 600;
}

.ne-pill small,
.ne-destination-item small {
	color: var(--ne-muted);
	font-size: 11px;
	font-weight: 400;
}

.ne-destination-item {
	display: flex;
	min-width: 190px;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	border-left: 3px solid var(--ne-orange);
	background: #fff;
}

.ne-taxonomy-strip {
	margin-bottom: 66px;
}

.ne-bottom-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 36px;
	margin-top: 88px;
	padding: 48px 52px;
	border-radius: 4px;
	background: var(--ne-sage);
}

.ne-bottom-cta h2 {
	margin: 0 0 10px;
	color: var(--ne-forest);
	font-size: 36px;
	letter-spacing: -.04em;
}

.ne-bottom-cta p {
	max-width: 540px;
	margin: 0;
	color: var(--ne-muted);
	line-height: 1.7;
}

.ne-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 2px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background .2s ease, transform .2s ease;
}

.ne-button:hover {
	text-decoration: none;
	transform: translateY(-2px);
}

.ne-button-primary {
	background: var(--ne-orange);
	color: #fff !important;
}

.ne-button-dark {
	background: var(--ne-forest);
	color: #fff !important;
}

.ne-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 40px;
	color: var(--ne-muted);
	font-size: 13px;
}

.ne-breadcrumbs a,
.ne-text-link,
.ne-auth-switch a,
.ne-status-row a {
	color: var(--ne-forest);
	font-weight: 700;
	text-decoration: none;
}

.ne-story-single-header {
	max-width: 900px;
	margin-bottom: 38px;
}

.ne-story-single-header h1 {
	color: var(--ne-forest);
	font-size: clamp(40px, 5vw, 72px);
}

.ne-story-dek {
	max-width: 740px;
	margin: 25px 0 22px;
	color: var(--ne-muted);
	font-size: 19px;
	line-height: 1.65;
}

.ne-story-byline {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	color: var(--ne-muted);
	font-size: 12px;
}

.ne-story-byline span + span:before {
	margin-right: 12px;
	color: var(--ne-orange);
	content: "·";
}

.ne-story-cover {
	margin: 0 0 54px;
}

.ne-story-cover img {
	display: block;
	width: 100%;
	max-height: 620px;
	border-radius: 4px;
	object-fit: cover;
}

.ne-story-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 270px;
	gap: 70px;
	max-width: 1000px;
	margin: 0 auto;
}

.ne-story-content {
	color: #364143;
	font-size: 17px;
	line-height: 1.9;
}

.ne-story-content p {
	margin: 0 0 1.4em;
}

.ne-story-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 38px 0;
}

.ne-story-gallery img {
	display: block;
	width: 100%;
	height: 210px;
	border-radius: 3px;
	object-fit: cover;
}

.ne-story-fact-box {
	position: sticky;
	top: 30px;
	padding: 25px;
	border-top: 3px solid var(--ne-orange);
	background: #fff;
	box-shadow: 0 8px 30px rgba(31, 57, 48, .06);
}

.ne-story-fact-box .ne-eyebrow {
	margin-bottom: 20px;
}

.ne-story-fact-box div {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 13px 0;
	border-top: 1px solid var(--ne-line);
}

.ne-story-fact-box small {
	color: var(--ne-muted);
	font-size: 11px;
	text-transform: uppercase;
}

.ne-story-fact-box strong {
	color: var(--ne-forest);
	font-size: 14px;
}

.ne-contributor-box {
	display: flex;
	align-items: flex-start;
	gap: 22px;
	max-width: 1000px;
	margin: 70px auto 0;
	padding: 30px 0;
	border-top: 1px solid var(--ne-line);
}

.ne-profile-avatar {
	display: grid;
	flex: 0 0 66px;
	width: 66px;
	height: 66px;
	border-radius: 50%;
	place-items: center;
	background: var(--ne-forest);
	color: #fff;
	font-size: 20px;
	font-weight: 700;
}

.ne-contributor-box h2,
.ne-account-profile h2 {
	margin: 0 0 8px;
	color: var(--ne-forest);
	font-size: 23px;
}

.ne-contributor-box p {
	max-width: 600px;
	margin: 0 0 12px;
	color: var(--ne-muted);
	line-height: 1.7;
}

.ne-related-stories {
	margin-top: 78px;
}

.ne-profile-header {
	display: flex;
	align-items: center;
	gap: 26px;
	max-width: 780px;
	margin-bottom: 74px;
}

.ne-profile-header .ne-profile-avatar {
	flex-basis: 100px;
	width: 100px;
	height: 100px;
	font-size: 30px;
}

.ne-profile-header h1 {
	color: var(--ne-forest);
	font-size: clamp(40px, 5vw, 62px);
}

.ne-profile-header p {
	max-width: 650px;
	margin: 13px 0 0;
	color: var(--ne-muted);
	line-height: 1.7;
}

.ne-profile-location {
	color: var(--ne-orange) !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ne-account-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 58px;
}

.ne-account-header h1 {
	color: var(--ne-forest);
	font-size: clamp(38px, 5vw, 60px);
}

.ne-account-header p {
	margin: 14px 0 0;
	color: var(--ne-muted);
}

.ne-account-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 52px;
}

.ne-account-profile {
	align-self: start;
	padding: 28px;
	background: var(--ne-sage);
}

.ne-account-profile .ne-profile-avatar {
	margin-bottom: 20px;
}

.ne-account-profile p {
	color: var(--ne-muted);
	font-size: 13px;
	line-height: 1.7;
}

.ne-account-profile form {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.ne-account-profile label,
.ne-story-form label,
.ne-auth-card label {
	margin-top: 13px;
	color: var(--ne-forest);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
}

.ne-account-profile input,
.ne-account-profile textarea,
.ne-story-form input,
.ne-story-form textarea,
.ne-story-form select,
.ne-auth-card input {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid #d8e0db;
	border-radius: 2px;
	background: #fff;
	color: var(--ne-ink);
	font: inherit;
}

.ne-account-profile textarea,
.ne-story-form textarea {
	resize: vertical;
}

.ne-account-profile button {
	margin-top: 16px;
}

.ne-account-logout {
	display: inline-block;
	margin-top: 22px;
	color: var(--ne-muted);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

.ne-status-list {
	border-top: 1px solid var(--ne-line);
}

.ne-status-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 20px;
	padding: 19px 0;
	border-bottom: 1px solid var(--ne-line);
}

.ne-status-row strong,
.ne-status-row small {
	display: block;
}

.ne-status-row strong {
	color: var(--ne-forest);
}

.ne-status-row small {
	margin-top: 5px;
	color: var(--ne-muted);
	font-size: 11px;
}

.ne-status {
	padding: 6px 8px;
	border-radius: 2px;
	background: var(--ne-sage);
	color: var(--ne-forest);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.ne-status-pending {
	background: #fff0dd;
	color: #9b5c1e;
}

.ne-story-form {
	max-width: 900px;
	margin: 46px auto 0;
}

.ne-form-header {
	max-width: 780px;
}

.ne-form-header h1 {
	color: var(--ne-forest);
	font-size: clamp(40px, 5vw, 66px);
}

.ne-form-header p {
	max-width: 650px;
	margin: 22px 0 0;
	color: var(--ne-muted);
	font-size: 17px;
	line-height: 1.75;
}

.ne-form-section {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 22px;
	padding: 34px 0 42px;
	border-top: 1px solid var(--ne-line);
}

.ne-form-number {
	color: var(--ne-orange);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
}

.ne-form-section h2 {
	margin: 0 0 25px;
	color: var(--ne-forest);
	font-size: 25px;
}

.ne-form-section-content {
	display: flex;
	flex-direction: column;
}

.ne-form-two-col {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.ne-field-note,
.ne-form-section small,
.ne-form-confirm p {
	color: var(--ne-muted);
	font-size: 12px;
	line-height: 1.6;
}

.ne-form-section small {
	display: block;
	margin-top: 7px;
}

.ne-form-confirm {
	margin-left: 70px;
	padding: 25px;
	background: var(--ne-sage);
}

.ne-form-confirm label {
	display: block;
	margin: 0 0 12px;
	font-weight: 600;
	letter-spacing: 0;
}

.ne-form-confirm input,
.ne-checkbox-label input {
	accent-color: var(--ne-orange);
}

.ne-form-confirm p {
	margin: 18px 0 20px;
}

.ne-auth-page {
	display: grid;
	min-height: 650px;
	place-items: center;
	padding-top: 70px;
	padding-bottom: 90px;
}

.ne-auth-card {
	width: min(100%, 510px);
	padding: 48px;
	background: #fff;
	box-shadow: var(--ne-shadow);
}

.ne-auth-card h1 {
	color: var(--ne-forest);
	font-size: 42px;
}

.ne-auth-card > p {
	color: var(--ne-muted);
	line-height: 1.7;
}

.ne-auth-card form {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin-top: 28px;
}

.ne-auth-card button {
	margin-top: 16px;
}

.ne-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
}

.ne-checkbox-label input {
	width: auto;
}

.ne-auth-switch {
	margin-top: 25px;
	font-size: 13px;
}

.ne-notice {
	margin-bottom: 28px;
	padding: 15px 18px;
	border-left: 3px solid var(--ne-orange);
	background: #fff0dd;
	color: #70421d;
	font-size: 13px;
	line-height: 1.6;
}

.ne-notice-success {
	border-left-color: var(--ne-forest);
	background: var(--ne-sage);
	color: var(--ne-forest);
}

.ne-empty-state {
	padding: 68px 30px;
	border: 1px dashed #cfdad3;
	background: #fff;
	text-align: center;
}

.ne-empty-state h1,
.ne-empty-state h3 {
	margin: 0 0 12px;
	color: var(--ne-forest);
}

.ne-empty-state p {
	max-width: 520px;
	margin: 0 auto 24px;
	color: var(--ne-muted);
	line-height: 1.7;
}

.ne-not-found {
	margin-top: 60px;
}

.ne-pagination {
	margin-top: 36px;
}

.ne-pagination ul {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 0;
	list-style: none;
}

.ne-pagination a,
.ne-pagination span {
	display: grid;
	min-width: 34px;
	min-height: 34px;
	padding: 0 8px;
	place-items: center;
	border: 1px solid var(--ne-line);
	color: var(--ne-forest);
	font-size: 12px;
	text-decoration: none;
}

.ne-pagination .current {
	background: var(--ne-forest);
	color: #fff;
}

@media (max-width: 900px) {
	.ne-stories-hero-mark {
		width: 220px;
		height: 220px;
	}

	.ne-story-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ne-story-card-featured,
	.ne-story-layout,
	.ne-account-grid {
		grid-template-columns: 1fr;
	}

	.ne-story-card-featured .ne-story-card-image {
		height: 320px;
	}

	.ne-story-fact-box {
		position: static;
	}
}

@media (max-width: 640px) {
	.ne-stories-hero .container,
	.ne-bottom-cta,
	.ne-account-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.ne-stories-hero-mark {
		display: none;
	}

	.ne-stories-hero-copy {
		padding: 58px 0;
	}

	.ne-stories-container,
	.ne-story-single,
	.ne-contributor-page,
	.ne-account-page,
	.ne-submit-page {
		padding-top: 55px;
		padding-bottom: 64px;
	}

	.ne-story-grid,
	.ne-form-two-col,
	.ne-story-gallery {
		grid-template-columns: 1fr;
	}

	.ne-form-section {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.ne-form-confirm {
		margin-left: 0;
	}

	.ne-auth-card {
		padding: 30px 24px;
	}

	.ne-status-row {
		grid-template-columns: 1fr auto;
	}

	.ne-status-row a {
		grid-column: 2;
		grid-row: 1;
	}

	.ne-status-row .ne-status {
		grid-column: 1;
		grid-row: 2;
		justify-self: start;
	}
}
/* -------------------------------------------------------------
 * Nature Explorer / GoWilds integration overrides - v1.1.0
 * ------------------------------------------------------------- */
:root {
	--ne-primary: #63ab45;
	--ne-primary-dark: #2f7d28;
	--ne-forest: #173c32;
	--ne-sage: #f4f8f2;
	--ne-line: #e6ebe3;
}

.ne-button-primary {
	background: var(--ne-primary);
	color: #fff !important;
}
.ne-button-primary:hover {
	background: var(--ne-primary-dark);
}
.ne-form-confirm input,
.ne-checkbox-label input {
	accent-color: var(--ne-primary);
}
.ne-profile-location,
.ne-text-link,
.ne-auth-switch a,
.ne-status-row a,
.ne-profile-public-link {
	color: var(--ne-primary-dark) !important;
}
.ne-story-fact-box {
	border-top-color: var(--ne-primary);
}

.ne-ad-slot {
	width: min(1180px, calc(100% - 30px));
	margin: 26px auto;
	text-align: center;
	overflow: hidden;
}
.ne-ad-empty {
	display: flex;
	min-height: 90px;
	align-items: center;
	justify-content: center;
	padding: 18px;
	border: 1px dashed #c9d5c4;
	background: #f8fbf7;
	color: #788078;
	font-size: 12px;
}
.ne-story-content .ne-ad-slot,
.ne-auth-card .ne-ad-slot,
.ne-account-page .ne-ad-slot,
.ne-submit-page .ne-ad-slot,
.ne-contributor-page .ne-ad-slot {
	width: 100%;
}

.ne-byline-author {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: inherit;
	font-weight: 700;
	text-decoration: none;
}
.ne-byline-author .ne-avatar-img,
.ne-byline-author .ne-avatar-initials {
	width: 42px;
	height: 42px;
}
.ne-avatar-img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}
.ne-avatar-initials {
	display: grid;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	place-items: center;
	background: var(--ne-forest);
	color: #fff;
	font-weight: 800;
}
.ne-profile-avatar-photo {
	overflow: hidden;
	background: transparent;
}
.ne-profile-avatar-photo .ne-avatar-img,
.ne-profile-avatar-photo .ne-avatar-initials {
	width: 100%;
	height: 100%;
}

.ne-favorite-moment {
	margin: 34px 0;
	padding: 25px 28px;
	border-radius: 4px;
	background: var(--ne-forest);
	color: #fff;
}
.ne-favorite-moment span {
	display: block;
	margin-bottom: 8px;
	color: #cbe7be;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.ne-favorite-moment p {
	margin: 0;
	color: #fff;
	font-size: 17px;
	line-height: 1.75;
}

.ne-story-gallery {
	display: block;
	margin: 42px 0;
}
.ne-story-gallery h2 {
	margin: 0 0 18px;
	color: var(--ne-forest);
	font-size: 28px;
}
.ne-gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.ne-gallery-grid img {
	display: block;
	width: 100%;
	height: 230px;
	border-radius: 4px;
	object-fit: cover;
}

.ne-row-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}
.ne-profile-public-link {
	display: inline-block;
	margin-top: 18px;
}
.ne-account-profile small {
	display: block;
	margin-top: 6px;
	color: var(--ne-muted);
	font-size: 11px;
	line-height: 1.5;
}

.ne-no-links-note {
	max-width: 760px;
	margin-top: 18px;
	padding: 13px 15px;
	border: 1px solid #f0d6a7;
	background: #fff7e8;
	color: #76531b;
	font-size: 13px;
	line-height: 1.6;
}
.ne-current-featured {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
	padding: 14px;
	background: var(--ne-sage);
}
.ne-current-featured img {
	width: 120px;
	height: 85px;
	border-radius: 3px;
	object-fit: cover;
}
.ne-current-featured small {
	margin: 0;
}
.ne-form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.ne-current-gallery {
	margin-bottom: 20px;
}
.ne-current-gallery > small {
	display: block;
	margin-bottom: 10px;
}
.ne-current-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 12px;
}
.ne-gallery-remove-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px;
	background: var(--ne-sage);
	border-radius: 4px;
	font-size: 12px;
}
.ne-gallery-remove-item img {
	width: 100%;
	height: 80px;
	object-fit: cover;
	border-radius: 3px;
}
.ne-gallery-remove-item span {
	display: flex;
	align-items: center;
	gap: 6px;
}

@media (max-width: 767px) {
	.ne-gallery-grid {
		grid-template-columns: 1fr;
	}
	.ne-gallery-grid img {
		height: auto;
		aspect-ratio: 4 / 3;
	}
	.ne-form-actions {
		flex-direction: column;
	}
	.ne-form-actions .ne-button {
		width: 100%;
	}
}

/* 2.1 functional controls; full visual redesign is a separate stage. */
.ne-discovery-form { display: flex; gap: 16px; flex-wrap: wrap; align-items: end; margin: 24px 0 40px; }
.ne-discovery-form > div { flex: 1 1 220px; }
.ne-discovery-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.ne-discovery-form input, .ne-discovery-form select { width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--ne-line); border-radius: 6px; background: white; color: var(--ne-ink); }
.ne-editor-feedback { padding: 12px; margin-top: 10px; border-left: 3px solid var(--ne-forest); background: var(--ne-sage); overflow-wrap: anywhere; }
.ne-editor-feedback p { margin: 6px 0 0; white-space: pre-wrap; }
.ne-field-errors, .ne-inline-error { color: #9b1c1c; }
.ne-field-errors { padding: 16px; border: 1px solid #9b1c1c; margin-bottom: 24px; }
.ne-field-errors a { color: inherit; }
.ne-stories-page [aria-invalid="true"] { border: 2px solid #9b1c1c; }
.ne-recovery-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.ne-stories-page :focus-visible { outline: 3px solid var(--ne-forest); outline-offset: 3px; }
.ne-stories-page [hidden] { display: none !important; }

/* Contributor formatting in published stories. */
.ne-story-content ul { list-style: disc outside; padding-left: 1.6em; margin: 1em 0; }
.ne-story-content ol { list-style: decimal outside; padding-left: 1.6em; margin: 1em 0; }
.ne-story-content li { margin: .4em 0; }
.ne-story-content blockquote { border-left: 4px solid #36734c; margin: 1.4em 0; padding: .6em 1.2em; font-style: italic; }
.ne-story-content strong { font-weight: 700; }
.ne-story-content em { font-style: italic; }
#wp-ne_story_content-wrap { margin-bottom: 1.2em; }

.ne-editable-page > .ne-page-layout { max-width: 1200px; margin: 0 auto; padding: 36px 20px; }
.ne-editable-page > .ne-page-layout > h1 { margin-bottom: 24px; }


/* 2.3 hardening and editorial sidebar */
.ne-honeypot { position:absolute !important; left:-10000px !important; width:1px !important; height:1px !important; overflow:hidden !important; }
.ne-blog-sidebar { margin-top:24px; padding-top:20px; border-top:1px solid var(--ne-line); }
.ne-blog-sidebar h2 { font-size:20px; margin:0 0 14px; }
.ne-blog-sidebar-item { display:grid; grid-template-columns:72px 1fr; gap:12px; align-items:start; margin:0 0 16px; }
.ne-blog-sidebar-thumb img { width:72px; height:72px; object-fit:cover; border-radius:5px; }
.ne-blog-sidebar-item small { display:block; margin-bottom:4px; opacity:.72; }
.ne-blog-sidebar-item h3 { font-size:15px; line-height:1.35; margin:0; }

/* Native WordPress comments on published stories. */
.ne-story-comments {
	max-width: 860px;
	margin: 48px auto;
	padding: clamp(22px, 4vw, 40px);
	border: 1px solid var(--ne-line);
	border-radius: 12px;
	background: #fff;
}
.ne-story-comments #comments { margin: 0; }
.ne-story-comments .comments-title,
.ne-story-comments .comment-reply-title {
	margin: 0 0 22px;
	color: var(--ne-ink);
	font-size: clamp(23px, 3vw, 30px);
	line-height: 1.25;
}
.ne-story-comments ol,
.ne-story-comments ul { list-style: none; margin: 0; padding: 0; }
.ne-story-comments .comment-list > li,
.ne-story-comments .children > li { margin: 0 0 20px; }
.ne-story-comments .children { margin: 18px 0 0 clamp(18px, 5vw, 54px); }
.ne-story-comments .the-comment {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 14px;
	padding: 18px;
	border-radius: 8px;
	background: var(--ne-sage);
}
.ne-story-comments .author-image img { width: 48px; height: 48px; border-radius: 50%; }
.ne-story-comments .author-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 8px; }
.ne-story-comments .author-meta .fn { color: var(--ne-ink); font-style: normal; font-weight: 700; }
.ne-story-comments .comment-info,
.ne-story-comments .comment-info a { color: var(--ne-muted); font-size: 13px; }
.ne-story-comments .comment-body p { margin: 0 0 10px; }
.ne-story-comments .comment-action-wrap { display: flex; gap: 14px; font-size: 13px; font-weight: 700; }
.ne-story-comments .comment-action-wrap a { color: var(--ne-forest); }
.ne-story-comments .comment-form-main { margin-top: 30px; }
.ne-story-comments .comment-form { display: grid; gap: 14px; }
.ne-story-comments .comment-form p,
.ne-story-comments .form-group { margin: 0; }
.ne-story-comments input[type="text"],
.ne-story-comments input[type="email"],
.ne-story-comments input[type="url"],
.ne-story-comments textarea {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--ne-line);
	border-radius: 6px;
	background: #fff;
	color: var(--ne-ink);
}
.ne-story-comments textarea { min-height: 150px; resize: vertical; }
.ne-story-comments input[type="submit"] {
	min-height: 46px;
	padding: 12px 22px;
	border: 0;
	border-radius: 6px;
	background: var(--ne-forest);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}
.ne-story-comments input[type="submit"]:hover { filter: brightness(.92); }
.ne-story-comments .comment-navigation { display: flex; justify-content: space-between; margin: 24px 0; }
@media (max-width: 600px) {
	.ne-story-comments { margin: 32px 0; padding: 20px 16px; }
	.ne-story-comments .children { margin-left: 14px; }
	.ne-story-comments .the-comment { grid-template-columns: 38px minmax(0, 1fr); padding: 14px; }
	.ne-story-comments .author-image img { width: 38px; height: 38px; }
}
