/*
 * nv3 — pages that are neither a catalogue nor a record.
 *
 * Forms, notices, category grids and editorial layouts. Everything is scoped to `.nv3` so the
 * classic templates that still use the old chrome are untouched.
 */

/* The archive hero is a dark band, so the aside takes the on-dark ramp; --nv3-ink-3 there
   measured 2.61:1. Same mistake as the eyebrow, same cause: a light-ground token used on dark. */
.nv3 .nv3-ah__aside {
	align-self: end; max-width: 30ch;
	font: 400 12.5px/1.6 var(--nv3-sans); color: var(--nv3-on-dark-3);
}

/* ── Notices ──────────────────────────────────────────────────────────────────────────────── */

.nv3 .nv3-note {
	border: 1px solid var(--nv3-line); border-left: 3px solid var(--nv3-trust-verified);
	background: var(--nv3-card); border-radius: 3px; padding: 18px 20px; margin-bottom: 26px;
}
.nv3 .nv3-note--error { border-left-color: var(--nv3-trust-stale); }
.nv3 .nv3-note__h { font: 500 17px/1.25 var(--nv3-serif); color: var(--nv3-ink); }
.nv3 .nv3-note__p { font: 400 14px/1.65 var(--nv3-sans); color: var(--nv3-ink-2); margin-top: 6px; }

/* ── Forms ────────────────────────────────────────────────────────────────────────────────── */

.nv3 .nv3-form { max-width: 560px; display: grid; gap: 18px; }
.nv3 .nv3-form__field { display: grid; gap: 6px; }
.nv3 .nv3-form__label { font: 500 12px/1.3 var(--nv3-sans); letter-spacing: .02em; color: var(--nv3-ink); }
/* Gold on cream measures 2.56:1; the darker gold clears the 4.5 floor. The asterisk itself is
   the signal — colour is never the only one. */
.nv3 .nv3-form__req { color: #7A5C22; }
/* The hint sits outside the label on purpose: inside, a screen reader reads it as part of the
   accessible name and then repeats it from aria-describedby. */
.nv3 .nv3-form__hint { font: 400 11.5px/1.5 var(--nv3-sans); color: var(--nv3-ink-3); }
/* Attribute-matched selectors missed every `<input>` written without a type — which defaults to
   text and is most of this form — so those fields rendered 24px tall. Match by exclusion instead. */
.nv3 .nv3-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.nv3 .nv3-form select,
.nv3 .nv3-form textarea {
	width: 100%; min-height: 44px; padding: 11px 13px;
	background: var(--nv3-cream); border: 1px solid var(--nv3-line-2); border-radius: 3px;
	font: 400 14px/1.5 var(--nv3-sans); color: var(--nv3-ink);
}
.nv3 .nv3-form textarea { min-height: 120px; resize: vertical; }
.nv3 .nv3-form :is(input, select, textarea):focus-visible {
	outline: 2px solid var(--nv3-gold); outline-offset: 1px; border-color: var(--nv3-dark);
}
.nv3 .nv3-form__check {
	display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start;
	font: 400 13px/1.6 var(--nv3-sans); color: var(--nv3-ink-2);
}
.nv3 .nv3-form__check { min-height: 44px; align-content: center; }
.nv3 .nv3-form__check input { width: 20px; height: 20px; min-height: 20px; margin-top: 2px; accent-color: var(--nv3-dark); }
/* Honeypot: off-screen rather than display:none, so a bot that checks visibility still fills it. */
.nv3 .nv3-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Category grid ────────────────────────────────────────────────────────────────────────── */

.nv3 .nv3-cats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.nv3 .nv3-cats a {
	display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
	min-height: 92px; padding: 15px 16px;
	background: var(--nv3-card); border: 1px solid var(--nv3-line); border-radius: 3px;
}
.nv3 .nv3-cats a:hover { border-color: var(--nv3-gold); }
.nv3 .nv3-cats strong { font: 500 15px/1.25 var(--nv3-serif); color: var(--nv3-ink); overflow-wrap: anywhere; }
.nv3 .nv3-cats small { font: 400 10.5px/1 var(--nv3-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--nv3-ink-3); }
.nv3 .nv3-cats a:hover small { color: var(--nv3-gold-hover); }

/* ── Principle / editorial columns ────────────────────────────────────────────────────────── */

.nv3 .nv3-cols { display: grid; gap: 26px; }
@media (min-width: 900px) { .nv3 .nv3-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; } }
@media (min-width: 900px) { .nv3 .nv3-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nv3 .nv3-cols article { border-top: 2px solid var(--nv3-dark); padding-top: 16px; }
.nv3 .nv3-cols h2 { font: 400 clamp(20px, 2.4vw, 25px)/1.18 var(--nv3-serif); margin: 8px 0 10px; overflow-wrap: anywhere; }
.nv3 .nv3-cols p { font: 400 14px/1.7 var(--nv3-sans); color: var(--nv3-ink-2); }
.nv3 .nv3-cols a { color: var(--nv3-dark); text-decoration: underline; text-underline-offset: 2px; }
.nv3 .nv3-cols a:hover { color: var(--nv3-gold-hover); }

/* ── Dark call-to-action band ─────────────────────────────────────────────────────────────── */

.nv3 .nv3-cta {
	background: var(--nv3-dark); color: var(--nv3-on-dark); border-radius: 3px;
	padding: 30px 26px; margin-top: 40px;
	display: grid; gap: 20px; align-items: center;
}
@media (min-width: 860px) { .nv3 .nv3-cta { grid-template-columns: minmax(0, 1fr) auto; padding: 36px 40px; } }
.nv3 .nv3-cta h2 { font: 400 clamp(21px, 2.8vw, 30px)/1.15 var(--nv3-serif); color: var(--nv3-on-dark); margin-top: 6px; }
.nv3 .nv3-cta p { font: 400 13.5px/1.7 var(--nv3-sans); color: var(--nv3-on-dark-3); margin-top: 8px; max-width: 52ch; }
.nv3 .nv3-cta .nv3-eyebrow { color: var(--nv3-gold); }
.nv3 .nv3-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* The map shell. Its children are styled individually below; a blanket `> *` rule here used to
   fight the flex row in .nv3-map__bar, which is exactly the override-from-a-file-you-are-not-
   looking-at trap this stylesheet is meant to avoid. */
.nv3 .nv3-mapwrap {
	border: 1px solid var(--nv3-line); border-radius: 3px; overflow: hidden;
	background: var(--nv3-card);
}

/* ── Credits register ─────────────────────────────────────────────────────────────────────── */

.nv3 .nv3-credits { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.nv3 .nv3-credit {
	display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start;
	padding: 13px; background: var(--nv3-card); border: 1px solid var(--nv3-line); border-radius: 3px;
}
.nv3 .nv3-credit img { width: 72px; height: 72px; object-fit: cover; border-radius: 2px; }
.nv3 .nv3-credit__title { font: 500 13.5px/1.35 var(--nv3-serif); color: var(--nv3-ink); overflow-wrap: anywhere; }
.nv3 .nv3-credit__author { font: 400 12.5px/1.5 var(--nv3-sans); color: var(--nv3-ink-2); margin-top: 3px; }
.nv3 .nv3-credit__lic { font: 400 10.5px/1.3 var(--nv3-mono); letter-spacing: .05em; color: var(--nv3-ink-3); margin-top: 4px; }
.nv3 .nv3-credit__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 7px; }
.nv3 .nv3-credit__links a {
	font: 400 11.5px/1 var(--nv3-mono); color: var(--nv3-dark);
	text-decoration: underline; text-underline-offset: 2px;
}
.nv3 .nv3-credit__links a:hover { color: var(--nv3-gold-hover); }

/* ── Map ──────────────────────────────────────────────────────────────────────────────────── */

.nv3 .nv3-map__top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 20px; }
.nv3 .nv3-map__top svg { width: 17px; height: 17px; }

.nv3 .nv3-map { display: grid; gap: 18px; }
@media (min-width: 1000px) { .nv3 .nv3-map { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; } }

.nv3 .nv3-map__frame { width: 100%; height: clamp(320px, 52vh, 560px); border: 0; display: block; }
.nv3 .nv3-map__bar {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
	padding: 10px 14px; border-top: 1px solid var(--nv3-line);
	font: 400 11px/1.4 var(--nv3-mono); color: var(--nv3-ink-3);
}
.nv3 .nv3-map__bar a {
	display: inline-flex; align-items: center; min-height: 44px;
	color: var(--nv3-dark); text-decoration: underline; text-underline-offset: 2px;
}
.nv3 .nv3-map__bar a:hover { color: var(--nv3-gold-hover); }

.nv3 .nv3-map__list {
	max-height: clamp(320px, 52vh, 560px); overflow-y: auto;
	border: 1px solid var(--nv3-line); border-radius: 3px; padding: 16px;
	background: var(--nv3-card);
}
.nv3 .nv3-map__note { font: 400 12.5px/1.6 var(--nv3-sans); color: var(--nv3-ink-3); margin: 6px 0 14px; }

.nv3 .nv3-map__place { border-top: 1px solid var(--nv3-line); }
.nv3 .nv3-map__place:first-of-type { border-top: 0; }
.nv3 .nv3-map__place button {
	display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center;
	width: 100%; min-height: 44px; padding: 11px 4px; text-align: left; cursor: pointer;
	background: none; border: 0;
}
.nv3 .nv3-map__thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 2px; display: block; }
.nv3 .nv3-map__copy small {
	display: block; font: 400 9.5px/1 var(--nv3-mono);
	letter-spacing: .18em; text-transform: uppercase; color: var(--nv3-ink-3);
}
.nv3 .nv3-map__copy strong { display: block; font: 500 14px/1.3 var(--nv3-serif); color: var(--nv3-ink); margin-top: 4px; overflow-wrap: anywhere; }
.nv3 .nv3-map__copy span { display: block; font: 400 12px/1.5 var(--nv3-sans); color: var(--nv3-ink-2); margin-top: 3px; }
/* The selected row is marked by a gold rule as well as a tint, so the state does not rest on
   colour alone. */
.nv3 .nv3-map__place.is-active { box-shadow: inset 3px 0 0 var(--nv3-gold); background: var(--nv3-cream-2); }
.nv3 .nv3-map__place button:hover .nv3-map__copy strong { color: var(--nv3-gold-hover); }
.nv3 .nv3-map__link {
	display: inline-block; padding: 0 4px 12px;
	font: 400 11.5px/1 var(--nv3-mono); color: var(--nv3-dark);
	text-decoration: underline; text-underline-offset: 2px;
}
.nv3 .nv3-map__link:hover { color: var(--nv3-gold-hover); }
