/* NADVIRNA — catalogue archives, nv3.
 *
 * Shared by the place, route, event, story and service archives. Loads on top of nv3.css.
 *
 * The filter chrome is the part that carries weight here: radius, category, settlement and sort
 * are all server-rendered and shareable as a URL, which is a property of the 3.0 catalogue worth
 * keeping. Nothing below turns a filter into client state.
 */

/* ── Catalogue hero ───────────────────────────────────────────────────────────────────────── */

.nv3-ah { background: var(--nv3-dark); color: var(--nv3-on-dark); }
.nv3-ah__grid { display: grid; gap: 22px; padding: 32px 0 34px; }
.nv3-ah__h1 { font: 400 clamp(30px, 6vw, 46px)/1.08 var(--nv3-serif); color: var(--nv3-on-dark); margin-top: 12px; }
.nv3-ah__lede { font: 400 14px/1.7 var(--nv3-sans); color: var(--nv3-on-dark-2); margin-top: 12px; max-width: 52ch; }
.nv3-ah__count { display: flex; align-items: baseline; gap: 10px; }
.nv3-ah__count strong { font: 400 40px/1 var(--nv3-serif); color: var(--nv3-gold); }
.nv3-ah__count span { font: 400 12px/1.4 var(--nv3-sans); color: var(--nv3-on-dark-3); max-width: 12ch; }

.nv3-ah__search label { display: block; font: 400 11.5px/1 var(--nv3-mono); letter-spacing: .06em; color: var(--nv3-on-dark-3); margin-bottom: 9px; }
.nv3-ah__search div { display: flex; max-width: 420px; }
.nv3-ah__search input {
	flex: 1; min-width: 0; height: 46px; padding: 0 14px;
	background: rgba(242,237,224,.07); border: 1px solid var(--nv3-dark-line); border-right: 0;
	border-radius: 3px 0 0 3px; color: var(--nv3-on-dark); font: 400 14px/1 var(--nv3-sans);
}
.nv3-ah__search input::placeholder { color: var(--nv3-on-dark-3); }
.nv3-ah__search button {
	width: 48px; height: 46px; flex: none; border: 0; border-radius: 0 3px 3px 0;
	background: var(--nv3-gold); color: var(--nv3-dark); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.nv3-ah__search button svg { width: 17px; height: 17px; }
.nv3-ah__search button:hover { background: var(--nv3-gold-hover); }

@media (min-width: 1000px) {
	.nv3-ah__grid { grid-template-columns: minmax(0, 1fr) auto auto; gap: 48px; align-items: end; padding: 44px 0 46px; }
}

/* ── Filter bar ───────────────────────────────────────────────────────────────────────────── */

.nv3-filters { background: var(--nv3-cream-2); border-bottom: 1px solid var(--nv3-line); }
.nv3-filters__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; flex-wrap: wrap; }

/* The radius nav is a segmented control: one continuous strip, not four separate pills, because
 * these four options are one axis and only one can be active. */
.nv3-scope { display: inline-flex; border: 1px solid var(--nv3-line-2); border-radius: 3px; overflow: hidden; background: var(--nv3-card); }
.nv3-scope a {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
	font: 400 12.5px/1 var(--nv3-sans); color: var(--nv3-ink-2);
	border-left: 1px solid var(--nv3-line);
}
.nv3-scope a:first-child { border-left: 0; }
.nv3-scope a:hover { color: var(--nv3-ink); background: var(--nv3-cream); }
.nv3-scope a[aria-current] { background: var(--nv3-dark); color: var(--nv3-on-dark); border-color: var(--nv3-dark); }

.nv3-fform { display: none; }
@media (min-width: 1000px) {
	.nv3-fform { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
	.nv3-fform label { display: grid; gap: 5px; }
	.nv3-fform label > span { font: 400 10px/1 var(--nv3-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--nv3-ink-3); }
	.nv3-fform select {
		height: 40px; min-width: 150px; padding: 0 10px;
		border: 1px solid var(--nv3-line-2); border-radius: 3px; background: var(--nv3-card);
		font: 400 13px/1 var(--nv3-sans); color: var(--nv3-ink);
	}
	.nv3-fform select:focus-visible { outline: 2px solid var(--nv3-gold); outline-offset: 1px; }
}

.nv3-fopen {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
	border: 1px solid var(--nv3-line-2); border-radius: 3px; background: var(--nv3-card);
	font: 400 13px/1 var(--nv3-sans); color: var(--nv3-ink); cursor: pointer;
}
.nv3-fopen span {
	min-width: 18px; height: 18px; border-radius: 9px; background: var(--nv3-gold); color: var(--nv3-dark);
	display: inline-flex; align-items: center; justify-content: center; font: 500 10.5px/1 var(--nv3-sans); padding: 0 5px;
}
@media (min-width: 1000px) { .nv3-fopen { display: none; } }

/* ── Result summary and active chips ──────────────────────────────────────────────────────── */

.nv3-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px 0 4px; }
.nv3-summary__count { font: 400 13px/1.4 var(--nv3-sans); color: var(--nv3-ink-2); }
.nv3-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.nv3-chips a {
	display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 11px;
	background: var(--nv3-dark); color: var(--nv3-on-dark); border-radius: 999px;
	font: 400 12px/1 var(--nv3-sans);
}
.nv3-chips a::after { content: '×'; font-size: 14px; line-height: 1; opacity: .7; }
.nv3-chips a:hover::after { opacity: 1; }
.nv3-clear { font: 400 12.5px/1 var(--nv3-sans); color: var(--nv3-ink-3); min-height: 40px; display: inline-flex; align-items: center; }
.nv3-clear:hover { color: var(--nv3-gold-hover); }

.nv3-view { display: inline-flex; border: 1px solid var(--nv3-line-2); border-radius: 3px; overflow: hidden; background: var(--nv3-card); }
.nv3-view > * {
	display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px;
	font: 400 12.5px/1 var(--nv3-sans); color: var(--nv3-ink-2); border-left: 1px solid var(--nv3-line);
}
.nv3-view > *:first-child { border-left: 0; }
.nv3-view [aria-current] { background: var(--nv3-dark); color: var(--nv3-on-dark); }

/* ── Results ──────────────────────────────────────────────────────────────────────────────── */

.nv3-results { padding: 10px 0 48px; }
@media (min-width: 1000px) { .nv3-results { padding: 14px 0 76px; } }

.nv3-empty {
	border: 1px dashed var(--nv3-line-2); border-radius: 4px;
	padding: 34px 24px; text-align: center; margin-top: 20px;
}
.nv3-empty__k { font: 500 10.5px/1 var(--nv3-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--nv3-ink-3); }
.nv3-empty__h { font: 400 24px/1.2 var(--nv3-serif); margin-top: 12px; }
.nv3-empty__p { font: 400 13.5px/1.65 var(--nv3-sans); color: var(--nv3-ink-3); margin: 10px auto 20px; max-width: 44ch; }

/* Pagination — WordPress emits .nav-links inside .pagination */
.nv3-results .pagination { margin-top: 34px; }
.nv3-results .nav-links { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; justify-content: center; }
.nv3-results .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	/* 40px worked only because the classic stylesheets were padding it out; they no longer
	   ship, and WCAG 2.5.5 wants 44. */
	min-width: 44px; min-height: 44px; padding: 0 12px;
	border: 1px solid var(--nv3-line); border-radius: 3px; background: var(--nv3-card);
	font: 400 13px/1 var(--nv3-sans); color: var(--nv3-ink-2);
}
.nv3-results .page-numbers:hover { border-color: var(--nv3-gold); color: var(--nv3-gold-hover); }
.nv3-results .page-numbers.current { background: var(--nv3-dark); color: var(--nv3-on-dark); border-color: var(--nv3-dark); }
.nv3-results .page-numbers.dots { border-color: transparent; background: transparent; }

/* ── Mobile filter dialog ─────────────────────────────────────────────────────────────────── */

.nv3-dialog { position: fixed; inset: 0; z-index: 90; background: rgba(21,44,30,.55); display: flex; align-items: flex-end; }
.nv3-dialog[hidden] { display: none; }
.nv3-dialog__panel {
	background: var(--nv3-cream); width: 100%; max-height: 88vh; overflow-y: auto;
	border-radius: 10px 10px 0 0; padding: 20px;
}
.nv3-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.nv3-dialog__h { font: 400 22px/1.2 var(--nv3-serif); }
.nv3-dialog__close {
	width: 40px; height: 40px; flex: none; border: 1px solid var(--nv3-line); border-radius: 3px;
	background: var(--nv3-card); color: var(--nv3-ink); font-size: 18px; line-height: 1; cursor: pointer;
}
.nv3-dialog fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.nv3-dialog legend { font: 400 10px/1 var(--nv3-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--nv3-ink-3); margin-bottom: 10px; }
.nv3-radio { display: flex; align-items: center; gap: 10px; min-height: 44px; font: 400 14px/1 var(--nv3-sans); }
.nv3-dialog form > label { display: grid; gap: 5px; margin-bottom: 16px; }
.nv3-dialog form > label > span { font: 400 10px/1 var(--nv3-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--nv3-ink-3); }
.nv3-dialog select {
	height: 46px; padding: 0 12px; width: 100%;
	border: 1px solid var(--nv3-line-2); border-radius: 3px; background: var(--nv3-card);
	font: 400 14px/1 var(--nv3-sans); color: var(--nv3-ink);
}
.nv3-dialog__actions { display: flex; gap: 10px; margin-top: 6px; }
.nv3-dialog__actions > * { flex: 1; }

@media (min-width: 1000px) { .nv3-dialog { display: none; } }

/* ── How much the current view is hiding ──────────────────────────────────────────────────────
   The catalogue opens on the city by design, but it used to report "28" with nothing to say that
   385 existed. These two lines are the only signpost a reader gets, so they state the number
   rather than gesturing at "more". */

.nv3 .nv3-ah__of {
	display: block; margin-top: 6px;
	font: 400 11.5px/1.4 var(--nv3-mono); color: var(--nv3-on-dark-3);
}

.nv3 .nv3-widen {
	margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
	font: 400 13.5px/1.6 var(--nv3-sans); color: var(--nv3-ink-2);
}
.nv3 .nv3-widen a {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
	font: 600 13px/1 var(--nv3-sans); letter-spacing: .06em;
	color: var(--nv3-gold-hover); text-decoration: underline; text-underline-offset: 3px;
}
.nv3 .nv3-widen a:hover { color: var(--nv3-ink); }
