/* NA Collections — front-end styles */

:root {
	--nac-radius: 14px;
	--nac-radius-sm: 8px;
	--nac-shadow: 0 1px 2px rgba(31, 35, 38, 0.05), 0 8px 24px -8px rgba(31, 35, 38, 0.12);
	--nac-shadow-hover: 0 2px 4px rgba(31, 35, 38, 0.08), 0 16px 32px -10px rgba(31, 35, 38, 0.18);
}

img { max-width: 100%; height: auto; }

/* ---------- header ---------- */

.nac-header {
	border-bottom: 1px solid var(--wp--preset--color--rule);
	background: var(--wp--preset--color--paper);
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(8px);
}

.nac-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 1.5rem;
	max-width: 1200px;
	margin: 0 auto;
}

.nac-logo {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.4rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	line-height: 1;
}

.nac-logo small {
	display: block;
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.65rem;
	font-weight: 500;
	color: var(--wp--preset--color--muted);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin-top: 4px;
}

.nac-nav {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	flex-wrap: wrap;
}

.nac-nav a {
	color: var(--wp--preset--color--ink-soft);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	padding: 0.5rem 0.85rem;
	border-radius: 999px;
	transition: background 0.15s;
}

.nac-nav a:hover, .nac-nav a.is-active {
	background: var(--wp--preset--color--bone);
	color: var(--wp--preset--color--ink);
}

.nac-search-form {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	background: var(--wp--preset--color--bone);
	border-radius: 999px;
	padding: 0.3rem 0.3rem 0.3rem 0.9rem;
}

.nac-search-form input[type="search"] {
	border: 0;
	background: transparent;
	font: inherit;
	color: inherit;
	min-width: 12rem;
	outline: none;
}

.nac-search-form button {
	border: 0;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	border-radius: 999px;
	padding: 0.4rem 0.9rem;
	font: inherit;
	font-size: 0.85rem;
	cursor: pointer;
}

@media (max-width: 720px) {
	.nac-header-inner { flex-wrap: wrap; }
	.nac-search-form input[type="search"] { min-width: 8rem; }
}

/* ---------- footer ---------- */

.nac-footer {
	margin-top: 6rem;
	padding: 3rem 1.5rem 2rem;
	border-top: 1px solid var(--wp--preset--color--rule);
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
	text-align: center;
}

.nac-footer-grid {
	max-width: 1200px;
	margin: 0 auto 2rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 2rem;
	text-align: left;
}

.nac-footer-grid h4 {
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
	margin: 0 0 0.8rem;
}

.nac-footer-grid ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.nac-footer-grid a {
	color: var(--wp--preset--color--ink-soft);
	text-decoration: none;
	font-size: 0.875rem;
}

.nac-footer-grid a:hover { color: var(--wp--preset--color--ochre); }

/* ---------- hero ---------- */

.nac-hero {
	padding: clamp(3rem, 8vw, 6rem) 1.5rem;
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 3rem;
	align-items: center;
}

.nac-hero h1 {
	margin: 0 0 1.2rem;
}

.nac-hero p.nac-lede {
	font-size: 1.15rem;
	line-height: 1.55;
	color: var(--wp--preset--color--ink-soft);
	max-width: 32rem;
	margin: 0 0 2rem;
}

.nac-hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
}

.nac-hero-stats .nac-stat strong {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.2rem;
	font-weight: 500;
	color: var(--wp--preset--color--ochre);
	line-height: 1;
}

.nac-hero-stats .nac-stat span {
	font-size: 0.78rem;
	color: var(--wp--preset--color--muted);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.nac-hero-figure {
	position: relative;
	aspect-ratio: 4/5;
	border-radius: var(--nac-radius);
	overflow: hidden;
	background: linear-gradient(135deg, #b07b3a 0%, #4f5d6b 60%, #6f7d5b 100%);
	box-shadow: var(--nac-shadow);
}

.nac-hero-figure::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 40%),
		radial-gradient(circle at 80% 70%, rgba(0,0,0,0.18), transparent 50%);
}

@media (max-width: 800px) {
	.nac-hero { grid-template-columns: 1fr; }
	.nac-hero-figure { max-width: 320px; margin: 0 auto; aspect-ratio: 1; }
}

/* ---------- type tiles (homepage) ---------- */

.nac-type-tiles {
	max-width: 1200px;
	margin: 4rem auto;
	padding: 0 1.5rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1rem;
}

.nac-type-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 1.5rem;
	min-height: 220px;
	border-radius: var(--nac-radius);
	color: white;
	text-decoration: none;
	overflow: hidden;
	box-shadow: var(--nac-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nac-type-tile:hover {
	transform: translateY(-3px);
	box-shadow: var(--nac-shadow-hover);
}

.nac-type-tile-icon {
	width: 56px;
	height: 56px;
	color: rgba(255,255,255,0.85);
	opacity: 0.95;
}

.nac-type-tile-icon svg { width: 100%; height: 100%; }

.nac-type-tile h3 {
	font-size: 1.35rem;
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	color: white;
}

.nac-type-tile-count {
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.75rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.85;
	margin-top: 0.3rem;
}

/* ---------- generic section ---------- */

.nac-section {
	max-width: 1200px;
	margin: 5rem auto;
	padding: 0 1.5rem;
}

.nac-section-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.nac-section-header h2 {
	margin: 0;
}

.nac-section-header p.nac-section-sub {
	color: var(--wp--preset--color--muted);
	margin: 0.3rem 0 0;
	font-size: 0.95rem;
}

.nac-section-header .nac-section-more {
	font-size: 0.85rem;
	color: var(--wp--preset--color--ochre);
	text-decoration: none;
	font-weight: 500;
}

/* ---------- card grid ---------- */

.nac-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.5rem;
}

.nac-card {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: var(--nac-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}

.nac-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--nac-shadow-hover);
	border-color: var(--wp--preset--color--ochre-soft);
}

.nac-card-thumb {
	aspect-ratio: 4/3;
	overflow: hidden;
	background: var(--wp--preset--color--bone);
	display: flex;
	align-items: center;
	justify-content: center;
}

.nac-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nac-card-thumb .nac-thumb-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.65);
}

.nac-card-thumb .nac-thumb-fallback svg { width: 38%; max-width: 80px; }

.nac-card-body {
	padding: 0.9rem 1rem 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	flex: 1;
}

.nac-card-badge {
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.nac-card-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.1rem;
	font-weight: 500;
	line-height: 1.25;
	color: var(--wp--preset--color--ink);
}

.nac-card-meta {
	margin: 0.2rem 0 0;
	font-size: 0.82rem;
	color: var(--wp--preset--color--muted);
	line-height: 1.4;
}

/* ---------- archive layout ---------- */

.nac-archive {
	max-width: 1200px;
	margin: 0 auto;
	padding: 3rem 1.5rem 2rem;
}

.nac-archive-header h1 {
	margin: 0;
}

.nac-archive-header .nac-archive-sub {
	color: var(--wp--preset--color--muted);
	font-size: 0.95rem;
	margin: 0.3rem 0 0;
}

.nac-archive-body {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 3rem;
	margin-top: 2.5rem;
}

@media (max-width: 880px) {
	.nac-archive-body { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- filter sidebar ---------- */

.nac-filters {
	font-size: 0.875rem;
	align-self: start;
	min-width: 0;
}

.nac-filters-panel {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.nac-filters-toggle {
	display: none;
}

@media (max-width: 880px) {
	.nac-filters-toggle:not([hidden]) {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		width: 100%;
		padding: 0.7rem 1rem;
		border: 1px solid var(--wp--preset--color--rule);
		border-radius: var(--nac-radius, 8px);
		background: var(--wp--preset--color--paper);
		color: var(--wp--preset--color--ink);
		font: inherit;
		font-family: var(--wp--preset--font-family--ui);
		font-weight: 600;
		cursor: pointer;
	}

	.nac-filters-toggle::after {
		content: "+";
		margin-left: auto;
		color: var(--wp--preset--color--muted);
	}

	.nac-filters.is-open .nac-filters-toggle::after { content: "−"; }

	.nac-filters.is-enhanced:not(.is-open) .nac-filters-panel { display: none; }

	.nac-filters.is-enhanced .nac-filters-panel { margin-top: 1rem; }
}

.nac-filters-badge {
	display: inline-grid;
	place-items: center;
	min-width: 1.4em;
	height: 1.4em;
	padding: 0 0.35em;
	border-radius: 999px;
	background: var(--wp--preset--color--ochre);
	color: #fff;
	font-size: 0.75rem;
}

.nac-filter-group {
	border-bottom: 1px solid var(--wp--preset--color--rule);
	padding-bottom: 1rem;
}

.nac-filter-group summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
	padding: 0.2rem 0;
	font-weight: 600;
	list-style: none;
}

.nac-filter-group summary::-webkit-details-marker { display: none; }

.nac-filter-group summary::after {
	content: "+";
	float: right;
	color: var(--wp--preset--color--muted);
	transition: transform 0.2s;
}

.nac-filter-group[open] summary::after { content: "−"; }

.nac-filter-list {
	list-style: none;
	margin: 0.6rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.nac-filter-list a {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.3rem 0;
	color: var(--wp--preset--color--ink-soft);
	text-decoration: none;
	transition: color 0.1s;
}

.nac-filter-list a:hover { color: var(--wp--preset--color--ochre); }

.nac-filter-count {
	color: var(--wp--preset--color--muted);
	font-size: 0.78rem;
	font-variant-numeric: tabular-nums;
}

.nac-filter-search {
	width: 100%;
	margin: 0.6rem 0 0;
	padding: 0.4rem 0.6rem;
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 6px;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 0.85rem;
}

.nac-filter-search:focus-visible {
	outline: 2px solid var(--wp--preset--color--ochre);
	outline-offset: 1px;
}

.nac-filter-list li[hidden] { display: none; }

.nac-filter-more {
	margin-top: 0.4rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--ochre);
	font: inherit;
	font-size: 0.8rem;
	cursor: pointer;
}

.nac-filter-more:hover,
.nac-filter-more:focus-visible { text-decoration: underline; text-underline-offset: 2px; }

.nac-filter-more[hidden],
.nac-filter-empty[hidden] { display: none; }

.nac-filter-empty {
	margin: 0.4rem 0 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.8rem;
}

.nac-filter-child a { padding-left: calc(var(--nac-depth, 1) * 0.9rem); }

.nac-filter-list a.is-active {
	color: var(--wp--preset--color--ochre);
	font-weight: 600;
}

.nac-filter-list a.is-active .nac-filter-count { color: inherit; font-size: 0.9rem; }

.nac-filters-active {
	border-bottom: 1px solid var(--wp--preset--color--rule);
	padding-bottom: 1rem;
}

.nac-filters-active ul {
	list-style: none;
	margin: 0 0 0.6rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.nac-filters-active li a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.25rem 0.6rem;
	border: 1px solid var(--wp--preset--color--ochre);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	font-size: 0.8rem;
}

.nac-filters-active li a:hover,
.nac-filters-active li a:focus-visible { background: var(--wp--preset--color--paper); }

.nac-filters-clear {
	font-size: 0.8rem;
	color: var(--wp--preset--color--muted);
}

.nac-filters-clear:hover { color: var(--wp--preset--color--ochre); }

.nac-results-count {
	margin: 0 0 1rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.9rem;
}

.nac-section-header .nac-count {
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}

/* ---------- single ---------- */

.nac-single {
	max-width: 1200px;
	margin: 0 auto;
	padding: 3rem 1.5rem;
}

.nac-single-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: start;
}

@media (max-width: 900px) {
	.nac-single-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.nac-single-figure {
	aspect-ratio: 1;
	border-radius: var(--nac-radius);
	overflow: hidden;
	background: var(--wp--preset--color--bone);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--nac-shadow);
}

.nac-single-figure img { width: 100%; height: 100%; object-fit: cover; }

.nac-single-figure .nac-thumb-fallback { width: 100%; height: 100%; color: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; }
.nac-single-figure .nac-thumb-fallback svg { width: 40%; max-width: 140px; }

.nac-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	gap: 0.6rem;
	margin-top: 0.75rem;
}
.nac-gallery-item {
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: calc(var(--nac-radius) * 0.5);
	background: var(--wp--preset--color--bone);
}
.nac-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nac-single-eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ochre);
	margin: 0 0 0.6rem;
}

.nac-single h1 { margin: 0 0 1.5rem; }

.nac-single .nac-chips { margin: 1rem 0 2rem; }

/* ---------- chips ---------- */

.nac-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.nac-chip {
	display: inline-flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.6rem 1.25rem;
	background: var(--wp--preset--color--bone);
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 1.5rem;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	font-size: 0.85rem;
	line-height: 1.2;
	transition: border-color 0.15s, background 0.15s;
}

.nac-chip:hover { background: var(--wp--preset--color--paper); border-color: var(--wp--preset--color--ochre); }

.nac-chip-value a { color: inherit; text-decoration: none; }
.nac-chip-value a:hover,
.nac-chip-value a:focus-visible { color: var(--wp--preset--color--ochre); text-decoration: underline; text-underline-offset: 2px; }
.nac-chip-sep { color: var(--wp--preset--color--muted); font-weight: 400; }

.nac-chip-label {
	font-size: 0.62rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.nac-chip-value { font-weight: 500; }

/* ---------- metadata table ---------- */

.nac-meta {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.6rem 1.5rem;
	margin: 0;
	padding: 1.5rem 0;
	border-top: 1px solid var(--wp--preset--color--rule);
	border-bottom: 1px solid var(--wp--preset--color--rule);
	font-size: 0.92rem;
}

.nac-meta dt {
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	font-weight: 600;
	align-self: baseline;
}

.nac-meta dd {
	margin: 0;
	color: var(--wp--preset--color--ink);
}

/* ---------- description body ---------- */

.nac-body {
	font-size: 1.02rem;
	line-height: 1.75;
	color: var(--wp--preset--color--ink-soft);
	padding-top: 1.5rem;
}

.nac-body :first-child { margin-top: 0; }

/* ---------- term cloud (browse-by sections) ---------- */

.nac-term-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.nac-term-cloud a {
	padding: 0.5rem 1rem;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	font-size: 0.88rem;
	transition: all 0.15s;
}

.nac-term-cloud a:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	border-color: var(--wp--preset--color--ink);
}

.nac-term-cloud a .nac-term-count {
	color: var(--wp--preset--color--muted);
	font-size: 0.78rem;
	margin-left: 0.4rem;
}

.nac-term-cloud a:hover .nac-term-count { color: rgba(255,255,255,0.7); }

/* ---------- breakdown for cross-cutting taxonomy archives ---------- */

.nac-tax-breakdown {
	display: flex;
	flex-direction: column;
	gap: 4rem;
}

.nac-tax-section header {
	display: flex;
	justify-content: space-between;
	align-items: end;
	margin-bottom: 1.2rem;
	padding-bottom: 0.8rem;
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.nac-tax-section h3 {
	margin: 0;
	font-size: 1.4rem;
	font-family: var(--wp--preset--font-family--display);
}

.nac-tax-section .nac-count {
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}

.nac-tax-section .nac-section-more {
	font-size: 0.85rem;
	color: var(--wp--preset--color--ochre);
	text-decoration: none;
}

/* ---------- pagination ---------- */

.nac-pagination {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--wp--preset--color--rule);
}

.nac-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.4rem;
}

.nac-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.4rem;
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 999px;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink-soft);
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.nac-pagination .prev,
.nac-pagination .next { padding: 0 1rem; }

.nac-pagination a.page-numbers:hover,
.nac-pagination a.page-numbers:focus-visible {
	border-color: var(--wp--preset--color--ochre);
	color: var(--wp--preset--color--ochre);
}

.nac-pagination .page-numbers.current {
	border-color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	font-weight: 600;
}

.nac-pagination .page-numbers.dots {
	min-width: auto;
	padding: 0 0.2rem;
	border: 0;
	background: none;
	color: var(--wp--preset--color--muted);
}

.nac-page-status {
	margin: 0.8rem 0 0;
	text-align: center;
	color: var(--wp--preset--color--muted);
	font-size: 0.8rem;
}

@media (max-width: 600px) {
	.nac-pagination .page-numbers:not(.prev):not(.next):not(.current) { display: none; }
	.nac-pagination .nav-links { justify-content: space-between; }
}
