/* ==========================================================================
   NZLA Forum — styles for archive-forum.php and single-forum.php
   Palette: bg #F9F9F9 · cards #FFFFFF · dark-green #1C743B · lime #94E783
   ========================================================================== */

/* Page background — light green tint so white cards pop */
body.post-type-archive-forum,
body.single-forum,
body.tax-forum_category {
	background-color: #EFF5EC !important;
	overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   3-column layout
   -------------------------------------------------------------------------- */

.nzla-layout {
	display: grid;
	grid-template-columns: 220px 1fr 240px;
	grid-template-areas: "left main right";
	gap: 20px;
	width: 100%;
	max-width: 1160px;
	box-sizing: border-box;
	margin: 24px auto 60px;
	padding: 0 24px;
	align-items: start;
	font-family: 'Plus Jakarta Sans', sans-serif;
}

.nzla-layout * {
	font-family: inherit;
	box-sizing: border-box;
	min-width: 0; /* prevents grid blowout from long text */
}

.nzla-sidebar-left  { grid-area: left; }
.nzla-main          { grid-area: main; }
.nzla-sidebar-right { grid-area: right; }

/* Sidebar cards */
.nzla-sidebar-card {
	background: #FFFFFF;
	border: 1px solid #dde8d8;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 14px;
	box-shadow: 0 1px 6px rgba(28, 116, 59, 0.06);
}

.nzla-sidebar-heading {
	font-size: 1.05rem;
	font-weight: 700;
	color: #FFFFFF;
	margin: -16px -16px 14px;
	padding: 14px 16px;
	background: #1C743B;
	border-radius: 12px 12px 0 0;
}

.nzla-sidebar-subheading {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #888;
	margin: 0 0 12px;
}

/* Left nav links */
.nzla-left-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nzla-left-nav-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 0.88rem;
	font-weight: 500;
	color: #444;
	text-decoration: none;
	transition: background 0.12s, color 0.12s;
}

.nzla-left-nav-item:hover {
	background: #F2FECF;
	color: #1C743B;
}

.nzla-left-nav-item.is-active {
	background: #1C743B;
	color: #fff;
}

.nzla-left-nav-item svg { flex-shrink: 0; opacity: 0.6; }
.nzla-left-nav-item.is-active svg { opacity: 1; color: #fff; }

/* Category tree nav */
.nzla-cat-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nzla-cat-nav-group {
	display: flex;
	flex-direction: column;
}

.nzla-cat-nav-parent-row {
	display: flex;
	align-items: center;
	gap: 2px;
}

/* Shared styles for parent — works as both <a> and <button> */
.nzla-cat-nav-parent {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 7px 10px;
	border-radius: 8px;
	font-size: 0.84rem;
	font-weight: 600;
	color: #333;
	text-decoration: none;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	transition: background 0.12s, color 0.12s;
	min-width: 0;
	font-family: inherit;
}

@media (hover: hover) {
	.nzla-cat-nav-parent:hover {
		background: #F2FECF;
		color: #1C743B;
	}
}

.nzla-cat-nav-parent.is-active {
	background: #1C743B;
	color: #fff;
}

.nzla-cat-nav-parent.is-active .nzla-cat-chevron {
	color: #fff;
}

/* The toggle is now merged into .nzla-cat-nav-parent — keep .nzla-cat-toggle for JS compat */
.nzla-cat-toggle {
	/* styles handled by .nzla-cat-nav-parent above */
}


.nzla-cat-chevron {
	flex-shrink: 0;
	margin-left: 6px;
	transition: transform 0.2s, color 0.2s;
	display: block;
	color: #1C743B;
	width: 22px;
	height: 22px;
}

/* Only rotate the chevron of the directly open group's own button */
.nzla-cat-nav-group.is-open > button > .nzla-cat-chevron {
	transform: rotate(180deg);
	color: #e07070;
}

.nzla-cat-nav-children {
	display: none;
	flex-direction: column;
	gap: 1px;
	margin-left: 15px;
	padding-left: 3px;
	border-left: 2px solid #e0e0e0;
}

/* Only show the DIRECT children container of an open group, not nested ones */
.nzla-cat-nav-group.is-open > .nzla-cat-nav-children {
	display: flex;
}

.nzla-cat-nav-child {
	padding: 7px 10px;
	border-radius: 8px;
	font-size: 0.84rem;
	font-weight: 600;
	color: #333;
	text-decoration: none;
	transition: background 0.12s, color 0.12s;
}

@media (hover: hover) {
	.nzla-cat-nav-child:hover {
		background: #F2FECF;
		color: #1C743B;
	}
}

.nzla-cat-nav-child.is-active {
	background: #1C743B;
	color: #fff;
}

/* Main content top bar */
.nzla-main-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

/* Community card (right sidebar) */
.nzla-community-card { padding: 0; overflow: hidden; }

.nzla-community-banner {
	height: 60px;
	background: #1C743B;
}

.nzla-community-body { padding: 16px 16px 0; }

.nzla-community-name {
	font-size: 0.95rem;
	font-weight: 700;
	color: #111;
	margin: 0 0 6px;
}

.nzla-community-desc {
	font-size: 0.8rem;
	color: #666;
	line-height: 1.5;
	margin: 0 0 12px;
}

.nzla-community-btn {
	display: block;
	text-align: center;
	background: #1C743B;
	color: #FFFFFF;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.85rem;
	padding: 9px 16px;
	border-radius: 999px;
	transition: background 0.15s;
	margin-bottom: 14px;
}

.nzla-community-btn:hover {
	background: #155c2e;
	color: #FFFFFF;
}

.nzla-community-stats {
	display: flex;
	border-top: 1px solid #f0f0f0;
}

.nzla-community-stat {
	flex: 1;
	text-align: center;
	padding: 12px 8px;
	border-right: 1px solid #f0f0f0;
}

.nzla-community-stat:last-child { border-right: none; }

.nzla-community-stat-num {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	color: #111;
}

.nzla-community-stat-label {
	display: block;
	font-size: 0.7rem;
	color: #999;
	margin-top: 1px;
}

/* Trending / related list */
.nzla-trending-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nzla-trending-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.nzla-trending-num {
	font-size: 1rem;
	font-weight: 700;
	color: #ddd;
	width: 18px;
	flex-shrink: 0;
	line-height: 1.3;
}

.nzla-trending-info { flex: 1; min-width: 0; }

.nzla-trending-title {
	display: block;
	font-size: 0.83rem;
	font-weight: 600;
	color: #222;
	text-decoration: none;
	line-height: 1.35;
	margin-bottom: 3px;
}

.nzla-trending-title:hover { color: #1C743B; }

.nzla-trending-likes { font-size: 0.75rem; color: #aaa; }

/* ── Recent Activity ─────────────────────────────────────────────────────── */

.nzla-activity-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nzla-activity-item {
	border-radius: 8px;
	transition: background 0.15s;
}

.nzla-activity-item:hover {
	background: #f4faf5;
}

.nzla-activity-card-link {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	padding: 6px 4px;
	text-decoration: none;
	color: inherit;
	border-radius: 8px;
}

.nzla-activity-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nzla-activity-text {
	font-size: 0.8rem;
	color: #333;
	line-height: 1.4;
}

.nzla-activity-card-link:hover .nzla-activity-text { color: #1C743B; }

.nzla-activity-text strong { color: #111; }
.nzla-activity-text em { font-style: normal; color: #1C743B; }

.nzla-activity-excerpt {
	font-size: 0.77rem;
	color: #888;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nzla-activity-time {
	font-size: 0.72rem;
	color: #bbb;
}

/* ── Shop sidebar ────────────────────────────────────────────────────────── */

.nzla-shop-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nzla-shop-item {
	border-bottom: 1px solid #f0f0f0;
	padding-bottom: 10px;
}

.nzla-shop-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.nzla-shop-link {
	display: flex;
	gap: 10px;
	align-items: center;
	text-decoration: none;
	color: inherit;
}

.nzla-shop-link:hover .nzla-shop-name { color: #1C743B; }

.nzla-shop-img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
	background: #f5f5f5;
}

.nzla-shop-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.nzla-shop-name {
	font-size: 0.82rem;
	font-weight: 600;
	color: #222;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nzla-shop-price {
	font-size: 0.82rem;
	font-weight: 700;
	color: #1C743B;
}

.nzla-shop-price del { color: #aaa; font-weight: 400; margin-right: 4px; }

.nzla-shop-all {
	display: block;
	margin-top: 12px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #1C743B;
	text-decoration: none;
	text-align: right;
}

.nzla-shop-all:hover { text-decoration: underline; }

/* nzla-forum-wrap used inside main column on single */
.nzla-forum-wrap {
	background: #ffffff;
	border: 1px solid #dde8d8;
	border-radius: 16px;
	padding: 24px 20px 32px;
	font-family: inherit;
	box-shadow: 0 1px 6px rgba(28, 116, 59, 0.06);
}

.nzla-forum-wrap * { font-family: inherit; }

/* --------------------------------------------------------------------------
   Page heading
   -------------------------------------------------------------------------- */

.nzla-forum-heading {
	font-size: 1.6rem;
	font-weight: 700;
	color: #111111;
	margin: 0 0 20px;
}

/* --------------------------------------------------------------------------
   Category filter pills
   -------------------------------------------------------------------------- */

.nzla-cat-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.nzla-cat-pill {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 500;
	text-decoration: none;
	background: #FFFFFF;
	color: #111111;
	border: 1px solid #e0e0e0;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
	white-space: nowrap;
}

.nzla-cat-pill:hover,
.nzla-cat-pill.is-active {
	background: #F2FECF;
	color: #1C743B;
	border-color: #94E783;
}

/* --------------------------------------------------------------------------
   Forum top bar (heading + sort tabs)
   -------------------------------------------------------------------------- */

.nzla-forum-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}

/* ── Forum hero header ────────────────────────────────────────────────────── */

.nzla-forum-hero {
	width: 100%;
	background: linear-gradient(135deg, #1C743B 0%, #145c2d 100%);
	font-family: 'Plus Jakarta Sans', sans-serif;
}

.nzla-forum-hero__inner {
	max-width: 1160px;
	margin: 0 auto;
	padding: 150px 24px 36px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.nzla-forum-hero__text {
	flex: 1;
	min-width: 0;
}

.nzla-forum-hero__title {
	font-size: 2rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 6px;
	line-height: 1.2;
}

.nzla-forum-hero__desc {
	font-size: 0.95rem;
	color: rgba(255,255,255,0.8);
	margin: 0;
}

/* Breadcrumb inside hero — white text */
.nzla-forum-hero .nzla-breadcrumb {
	margin-bottom: 8px;
	color: rgba(255,255,255,0.75);
}

.nzla-forum-hero .nzla-breadcrumb a {
	color: rgba(255,255,255,0.85);
	font-weight: 500;
}

.nzla-forum-hero .nzla-breadcrumb a:hover {
	color: #fff;
}

.nzla-forum-hero .nzla-breadcrumb .nzla-breadcrumb-sep {
	color: rgba(255,255,255,0.4);
}

.nzla-forum-hero .nzla-breadcrumb span {
	color: rgba(255,255,255,0.75);
}

/* Right column: stats + CTA */
.nzla-forum-hero__right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 16px;
	flex-shrink: 0;
}

/* Stats row */
.nzla-forum-hero__stats {
	display: flex;
	gap: 28px;
}

.nzla-forum-hero__cta {
	display: inline-block;
	padding: 10px 22px;
	background: #fff;
	color: #1C743B;
	font-size: 0.9rem;
	font-weight: 700;
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}

.nzla-forum-hero__cta:hover {
	background: #EFF5EC;
}

.nzla-forum-hero__stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.nzla-forum-hero__stat-num {
	font-size: 1.4rem;
	font-weight: 700;
	color: #fff;
	line-height: 1;
}

.nzla-forum-hero__stat-label {
	font-size: 0.75rem;
	color: rgba(255,255,255,0.7);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

@media (max-width: 600px) {
	.nzla-forum-hero__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.nzla-forum-hero__stats {
		gap: 20px;
	}
}

.nzla-breadcrumb {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.9rem;
	color: #555;
}

.nzla-breadcrumb a {
	color: #1C743B;
	text-decoration: none;
	font-weight: 500;
}

.nzla-breadcrumb-sep {
	color: #bbb;
}

.nzla-sort-tabs {
	display: inline-flex;
	gap: 4px;
	background: #FFFFFF;
	border: 1px solid #e0e0e0;
	border-radius: 999px;
	padding: 3px;
}

.nzla-sort-tab {
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 500;
	color: #555;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}

.nzla-sort-tab.is-active,
.nzla-sort-tab:hover {
	background: #1C743B;
	color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Section labels
   -------------------------------------------------------------------------- */

.nzla-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.nzla-section-label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #888;
	margin: 0;
}

.nzla-clear-filter {
	font-size: 0.82rem;
	color: #1C743B;
	text-decoration: none;
	font-weight: 500;
}

.nzla-clear-filter:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Category board grid
   -------------------------------------------------------------------------- */

.nzla-boards {
	margin-bottom: 32px;
}

.nzla-boards > .nzla-section-label {
	margin-bottom: 12px;
	display: block;
}

.nzla-board-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 10px;
}

.nzla-board-card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #FFFFFF;
	border: 1px solid #ebebeb;
	border-radius: 10px;
	padding: 14px 16px;
	text-decoration: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.nzla-board-card:hover {
	border-color: #94E783;
	box-shadow: 0 2px 8px rgba(28,116,59,0.08);
}

.nzla-board-icon {
	width: 36px;
	height: 36px;
	background: #F2FECF;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1C743B;
	flex-shrink: 0;
}

.nzla-board-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nzla-board-name {
	font-weight: 600;
	font-size: 0.88rem;
	color: #111;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nzla-board-subs {
	font-size: 0.75rem;
	color: #999;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nzla-board-count {
	font-size: 0.78rem;
	font-weight: 600;
	color: #888;
	background: #f5f5f5;
	border-radius: 999px;
	padding: 2px 8px;
	white-space: nowrap;
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Thread list (compact rows)
   -------------------------------------------------------------------------- */

.nzla-thread-list {
	background: #FFFFFF;
	border: 1px solid #dde8d8;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 6px rgba(28, 116, 59, 0.06);
}

.nzla-thread-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid #f0f0f0;
	border-left: 3px solid transparent;
	transition: background 0.12s, border-left-color 0.12s;
	position: relative;
	cursor: pointer;
}

.nzla-thread-row:last-child {
	border-bottom: none;
}

.nzla-thread-row:hover {
	background: #f6fbf4;
	border-left-color: #94E783;
}

/* Full-row click target via the title link */
.nzla-thread-title::after {
	content: '';
	position: absolute;
	inset: 0;
}

/* Links inside the row (category pills, author) sit above the overlay */
.nzla-thread-row .nzla-inline-cat,
.nzla-thread-row .nzla-thread-author {
	position: relative;
	z-index: 1;
}

.nzla-thread-avatar {
	flex-shrink: 0;
	padding-top: 2px;
}

.nzla-thread-main {
	flex: 1;
	min-width: 0;
}

.nzla-thread-title {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	color: #111;
	text-decoration: none;
	margin-bottom: 4px;
	line-height: 1.35;
}

.nzla-thread-title:hover,
.nzla-thread-row:hover .nzla-thread-title {
	color: #1C743B;
}

.nzla-thread-img-badge {
	font-size: 0.75rem;
	vertical-align: middle;
	opacity: 0.7;
}

.nzla-thread-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px;
	font-size: 0.78rem;
	color: #999;
	margin-bottom: 4px;
}

.nzla-thread-author {
	color: #666;
	font-weight: 500;
}

.nzla-thread-dot {
	color: #ccc;
}

.nzla-thread-excerpt {
	font-size: 0.82rem;
	color: #888;
	line-height: 1.4;
	margin: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.nzla-thread-stats {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	flex-shrink: 0;
	padding-top: 2px;
}

.nzla-thread-stat {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.78rem;
	color: #888;
	white-space: nowrap;
}

.nzla-thread-stat svg {
	opacity: 0.6;
}

.nzla-thread-time {
	font-size: 0.74rem;
	color: #bbb;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Post card (archive) — kept for any reuse
   -------------------------------------------------------------------------- */

.nzla-post-card {
	background: #FFFFFF;
	border-radius: 12px;
	padding: 18px 20px;
	margin-bottom: 16px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.07);
	transition: box-shadow 0.15s;
}

.nzla-post-card:hover {
	box-shadow: 0 3px 12px rgba(0,0,0,0.11);
}

.nzla-card-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.nzla-card-author-info {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.nzla-card-author-name {
	font-weight: 600;
	font-size: 0.9rem;
	color: #111111;
}

.nzla-card-time {
	font-size: 0.78rem;
	color: #888;
}

.nzla-card-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #111111;
	margin: 0 0 6px;
	text-decoration: none;
	display: block;
	line-height: 1.35;
}

.nzla-card-title:hover {
	color: #1C743B;
}

.nzla-card-excerpt {
	font-size: 0.88rem;
	color: #555;
	line-height: 1.55;
	margin: 0 0 12px;
}

.nzla-card-thumb {
	width: 100%;
	max-height: 320px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 12px;
	display: block;
}

.nzla-card-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.nzla-inline-cat {
	font-size: 0.75rem;
	font-weight: 500;
	padding: 3px 10px;
	border-radius: 999px;
	background: #F2FECF;
	color: #111111;
	text-decoration: none;
	border: 1px solid #d4f5a0;
}

.nzla-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid #f0f0f0;
	padding-top: 10px;
	margin-top: 2px;
}

.nzla-card-stats {
	display: flex;
	gap: 16px;
}

.nzla-stat {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 0.82rem;
	color: #666;
}

.nzla-stat svg {
	flex-shrink: 0;
	opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Avatar (shared)
   -------------------------------------------------------------------------- */

.nzla-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.nzla-avatar-initials {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	font-weight: 700;
	color: #FFFFFF;
	flex-shrink: 0;
	line-height: 1;
}

.nzla-avatar--sm,
.nzla-avatar-initials--sm {
	width: 32px;
	height: 32px;
	font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

/* Infinite scroll sentinel + spinner */

.nzla-load-sentinel {
	height: 1px;
	margin-top: 16px;
}

.nzla-load-spinner {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 20px 0;
	color: #555;
	font-size: 0.875rem;
}

.nzla-load-spinner.is-visible {
	display: flex;
}

.nzla-spinner-ring {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #cde3d4;
	border-top-color: #1C743B;
	border-radius: 50%;
	animation: nzla-spin 0.7s linear infinite;
	flex-shrink: 0;
}

@keyframes nzla-spin {
	to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Single post — header
   -------------------------------------------------------------------------- */

.nzla-single-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	color: #555;
	text-decoration: none;
	margin-bottom: 20px;
}

.nzla-single-back:hover {
	color: #1C743B;
}

.nzla-single-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.nzla-single-author-info {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.nzla-single-author-name {
	font-weight: 600;
	font-size: 0.95rem;
	color: #111;
}

.nzla-single-time {
	font-size: 0.8rem;
	color: #888;
}

.nzla-single-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: #111;
	margin: 0 0 14px;
	line-height: 1.3;
}

.nzla-single-content {
	font-size: 0.95rem;
	color: #333;
	line-height: 1.65;
	margin-bottom: 20px;
}

.nzla-single-content p:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Single post — categories
   -------------------------------------------------------------------------- */

.nzla-single-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   Image gallery
   -------------------------------------------------------------------------- */

/* ── Image carousel ─────────────────────────────────────────────────────── */

.nzla-carousel {
	margin-bottom: 20px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e4ede5;
	user-select: none;
}

/* Stack all slides in one grid cell so they're all rendered (preloaded),
   only the active one is visible. This eliminates the load-flash. */
.nzla-carousel__track {
	display: grid;
}

.nzla-carousel__slide {
	grid-area: 1 / 1;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.nzla-carousel__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.nzla-carousel__img {
	width: 100%;
	max-height: 500px;
	object-fit: cover;
	display: block;
}

/* Bottom controls bar */
.nzla-carousel__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	background: #f6faf6;
	border-top: 1px solid #e4ede5;
	gap: 8px;
}

/* Prev / next buttons */
.nzla-carousel__btn {
	background: #1C743B;
	border: none;
	border-radius: 50%;
	width: 34px;
	height: 34px;
	min-width: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #fff;
	transition: background 0.15s;
	padding: 0;
}

.nzla-carousel__btn:hover { background: #155c2e; }

/* Dot indicators */
.nzla-carousel__dots {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1;
	justify-content: center;
}

.nzla-carousel__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #cde3d4;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background 0.15s;
}

.nzla-carousel__dot.is-active,
.nzla-carousel__dot:hover { background: #1C743B; }

/* Counter */
.nzla-carousel__counter {
	font-size: 0.75rem;
	color: #6b7280;
	min-width: 34px;
	text-align: right;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Like / reaction bar (single)
   -------------------------------------------------------------------------- */

.nzla-like-bar {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 0;
	border-top: 1px solid #e4ede5;
	margin-bottom: 0;
}

.nzla-like-chip {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 0.88rem;
	font-weight: 600;
	color: #333;
}

.nzla-reaction-chip {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.85rem;
	color: #555;
	background: #f5f5f5;
	border-radius: 999px;
	padding: 3px 10px;
}

/* --------------------------------------------------------------------------
   Comments section
   -------------------------------------------------------------------------- */

.nzla-comments-section {
	margin-bottom: 32px;
	border-top: 2px solid #EFF5EC;
	padding-top: 24px;
	margin-top: 8px;
}

.nzla-comments-heading {
	font-size: 1rem;
	font-weight: 700;
	color: #111;
	margin: 0 0 16px;
}

.nzla-comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nzla-comment-item {
	margin-bottom: 12px;
}

.nzla-comment-body {
	background: #EFF5EC;
	border: 1px solid #e4ede5;
	border-radius: 12px;
	padding: 14px 16px;
}

.nzla-comment-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.nzla-comment-author-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.nzla-comment-author-name {
	font-weight: 600;
	font-size: 0.87rem;
	color: #111;
}

.nzla-comment-time {
	font-size: 0.76rem;
	color: #999;
}

.nzla-comment-text {
	font-size: 0.88rem;
	color: #333;
	line-height: 1.6;
	margin: 0 0 10px;
}

.nzla-comment-text p:last-child {
	margin-bottom: 0;
}

.nzla-comment-text a,
.nzla-single-content a {
	color: #1C743B;
	text-decoration: underline;
	text-underline-offset: 2px;
	word-break: break-word;
}

.nzla-comment-text a:hover,
.nzla-single-content a:hover {
	color: #155c2e;
}

.nzla-comment-images {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.nzla-comment-image-link {
	display: block;
	flex: 1 1 calc(50% - 4px);
	max-width: 360px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e2e8e4;
	line-height: 0;
}

.nzla-comment-image {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	max-height: 300px;
	transition: opacity 0.2s;
}

.nzla-comment-image-link:hover .nzla-comment-image {
	opacity: 0.9;
}

.nzla-comment-footer {
	display: flex;
	align-items: center;
	gap: 14px;
}

.nzla-comment-like {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.78rem;
	color: #777;
}

/* Threaded replies — indented with left accent */
.nzla-comment-item .nzla-comment-list {
	margin-top: 8px;
	margin-left: 20px;
	padding-left: 14px;
	border-left: 2px solid #e8f5e9;
}

/* --------------------------------------------------------------------------
   "Join the conversation" CTA
   -------------------------------------------------------------------------- */

.nzla-app-cta {
	text-align: center;
	padding: 24px 20px;
	background: #ffffff;
	border: 1px solid #e4ede5;
	border-radius: 12px;
}

.nzla-app-cta p {
	font-size: 0.9rem;
	color: #555;
	margin: 0 0 14px;
}

.nzla-app-cta-btn {
	display: inline-block;
	background: #1C743B;
	color: #FFFFFF;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	padding: 11px 28px;
	border-radius: 999px;
	transition: background 0.15s;
}

.nzla-app-cta-btn:hover {
	background: #155c2e;
	color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Empty / no-posts state
   -------------------------------------------------------------------------- */

.nzla-no-posts {
	text-align: center;
	padding: 48px 20px;
	color: #888;
	font-size: 0.95rem;
}

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

/* Tablet — hide right sidebar */
@media (max-width: 1100px) {
	.nzla-layout {
		grid-template-columns: 200px 1fr;
		grid-template-areas: "left main";
	}

	.nzla-sidebar-right { display: none; }
}

/* --------------------------------------------------------------------------
   Off-canvas panel (mobile filter/browse — full-screen overlay)
   -------------------------------------------------------------------------- */

/* Trigger button — hidden on desktop, full-width on mobile */
.nzla-filter-fab {
	display: none;
}

/* Overlay disabled — no backdrop */
.nzla-offcanvas-overlay { display: none !important; }

/* Full-screen panel — slides in from the left */
.nzla-offcanvas {
	position: fixed;
	inset: 0;
	background: #f5faf6;
	z-index: 1101;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	transform: translateX(-100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}
.nzla-offcanvas.is-open {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(0);
}

/* Header bar */
.nzla-offcanvas-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #1C743B;
	color: #fff;
	padding: 16px 20px;
	flex-shrink: 0;
}
.nzla-offcanvas-title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.01em;
}
.nzla-offcanvas-close {
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 6px;
	display: flex;
	align-items: center;
	opacity: 0.9;
	transition: opacity 0.15s;
	-webkit-tap-highlight-color: transparent;
}
.nzla-offcanvas-close:hover { opacity: 1; }

/* Scrollable body */
.nzla-offcanvas-body {
	flex: 1;
	overflow-y: auto;
	padding: 4px 0 40px;
	-webkit-overflow-scrolling: touch;
}

/* Section inside panel */
.nzla-offcanvas-section {
	padding: 18px 20px 8px;
}
.nzla-offcanvas-section + .nzla-offcanvas-section {
	border-top: 1px solid #c8e0cc;
	margin-top: 4px;
	padding-top: 18px;
}
.nzla-offcanvas-section-title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 0.68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #1C743B;
	margin: 0 0 12px;
}

/* Off-canvas link loading state */
.nzla-offcanvas-loading {
	background: #1C743B !important;
	color: #fff !important;
	display: flex !important;
	align-items: center !important;
	pointer-events: none;
}
.nzla-offcanvas-spinner {
	display: inline-flex;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255,255,255,0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: nzla-spin 0.7s linear infinite;
	margin-left: 8px;
	flex-shrink: 0;
	align-self: center;
	position: relative;
	top: 0;
}

/* Nav items inside the panel */
.nzla-offcanvas-body .nzla-left-nav { gap: 4px; }
.nzla-offcanvas-body .nzla-left-nav-item {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 1rem;
	font-weight: 500;
	border-radius: 10px;
	padding: 12px 14px;
}
.nzla-offcanvas-body .nzla-cat-nav-parent {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	padding: 10px 12px;
	border-radius: 10px;
}
.nzla-offcanvas-body .nzla-cat-nav-child {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	padding: 10px 12px;
	border-radius: 10px;
}

/* Mobile — single column */
@media (max-width: 700px) {
	.nzla-layout {
		grid-template-columns: 1fr;
		grid-template-areas: "main";
		padding: 0 10px;
	}

	.nzla-sidebar-left  { display: none; }
	.nzla-sidebar-right { display: none; }

	/* Show the filter button — full width at top of thread list */
	.nzla-filter-fab {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		width: 100%;
		background: #1C743B;
		color: #fff;
		border: none;
		border-radius: 10px;
		padding: 13px 20px;
		font-family: 'Plus Jakarta Sans', sans-serif;
		font-weight: 600;
		font-size: 0.95rem;
		cursor: pointer;
		margin-bottom: 14px;
		-webkit-tap-highlight-color: transparent;
		transition: background 0.15s;
	}
	.nzla-filter-fab:active {
		background: #155c2e;
	}

	.nzla-thread-stats { display: none; }

	.nzla-sort-tab {
		padding: 5px 10px;
	}

	.nzla-single-title { font-size: 1.2rem; }

	.nzla-forum-wrap { padding: 16px 14px 28px; }

	.nzla-comment-item .nzla-comment-list { margin-left: 10px; }
}
