/* ============================================================
   PULSE-ART Observatory — Resources page
   Palette taken from custom.css / pulse-art.css
   All selectors are prefixed .res- so nothing collides with the theme.
   ============================================================ */

.res-page {
	/* Fallback only. resources-observatory.js measures the real sticky header
	   and overwrites this, because the theme header shrinks on scroll. */
	--res-sticky-top: 72px;
	--res-navy: #171940;
	--res-navy-soft: #2a2d63;
	--res-magenta: #9c1c6b;
	--res-magenta-dark: #8B1C5A;
	--res-blue: #2f5bb3;
	--res-teal: #197db3;
	--res-orange: #d64209;
	--res-olive: #847714;
	--res-bg: #eff1f3;
	--res-panel: #ffffff;
	--res-line: rgba(23, 25, 64, .10);
	--res-line-soft: rgba(23, 25, 64, .07);
	--res-ink: #171940;
	--res-muted: #5c6070;
	--res-shadow: 0 1px 2px rgba(23, 25, 64, .04), 0 6px 18px rgba(23, 25, 64, .045);
	--res-shadow-lg: 0 2px 4px rgba(23, 25, 64, .05), 0 14px 36px rgba(23, 25, 64, .085);
	--res-radius: 11px;
}

/* ---------- Layout shell ---------- */
.res-wrap {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

.res-section {
	position: relative;
	z-index: 2;
}

/* ---------- Eyebrow labels (same treatment as the PDP module headers) ---------- */
.res-eyebrow {
	margin: 0 0 8px;
	font-size: .785rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--res-muted);
}

/* ============================================================
   1. SEARCH PANEL
   ============================================================ */
.res-search-panel {
	background: var(--res-panel);
	border: 1px solid var(--res-line);
	border-radius: 14px;
	box-shadow: var(--res-shadow-lg);
	padding: 22px 24px 18px;
	margin-top: -56px;
}

@media (max-width: 767px) {
	.res-search-panel {
		margin-top: -26px;
		padding: 16px 14px 14px;
		border-radius: 12px;
	}
}

/* ---------- Keyword search ---------- */
.res-keyword {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 2px solid var(--res-line);
	border-radius: 999px;
	padding: 4px 4px 4px 16px;
	transition: border-color .2s ease, box-shadow .2s ease;
	background: #fff;
}

.res-keyword:focus-within {
	border-color: var(--res-magenta);
	box-shadow: 0 0 0 4px rgba(156, 28, 107, .1);
}

.res-keyword-icon {
	flex: 0 0 auto;
	font-size: 1.05rem;
	color: var(--res-magenta);
	line-height: 1;
}

.res-keyword input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: .93rem;
	font-weight: 500;
	color: var(--res-ink);
	padding: 9px 0;
}

.res-keyword input::placeholder {
	color: #6b7080;
	font-weight: 400;
}

.res-keyword-clear {
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: var(--res-muted);
	font-size: 1.2rem;
	line-height: 1;
	padding: 6px 8px;
	cursor: pointer;
	border-radius: 50%;
}

.res-keyword-clear:hover {
	background: rgba(23, 25, 64, .07);
	color: var(--res-ink);
}

.res-keyword-clear[hidden] {
	display: none;
}

.res-keyword-submit {
	flex: 0 0 auto;
	border: 0;
	border-radius: 999px;
	background: var(--res-magenta);
	color: #fff;
	font-weight: 700;
	font-size: .84rem;
	letter-spacing: .01em;
	padding: 10px 22px;
	cursor: pointer;
	transition: background .2s ease, transform .15s ease;
}

.res-keyword-submit:hover {
	background: var(--res-magenta-dark);
}

.res-keyword-submit:active {
	transform: translateY(1px);
}

.res-keyword-hint {
	margin: 8px 2px 0;
	font-size: .78rem;
	color: var(--res-muted);
}

/* ============================================================
   2. THE THREE ENTRY POINTS — PULSE-ART / RESOURCE TYPE / TOPIC
   ============================================================ */
.res-browse {
	display: grid;
	grid-template-columns: 0.95fr 1fr 1.15fr;
	gap: 12px;
	margin-top: 18px;
}

@media (max-width: 1099px) {
	.res-browse {
		grid-template-columns: 1fr 1fr;
	}

	.res-card-pulse {
		grid-column: 1 / -1;
	}
}

@media (max-width: 720px) {
	.res-browse {
		grid-template-columns: 1fr;
	}
}

.res-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--res-line);
	border-radius: var(--res-radius);
	padding: 15px 16px 14px;
	overflow: hidden;
}

.res-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: var(--res-accent, var(--res-line));
}

.res-card-type {
	--res-accent: var(--res-magenta);
}

.res-card-topic {
	--res-accent: var(--res-blue);
}

.res-card-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 11px;
}

.res-page .res-card-title {
	margin: 0;
	font-size: .71rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--res-accent, var(--res-ink));
	border: 0;
	padding: 0;
}

/* the theme adds a decorative rule under h2/h3 — not wanted here */
.res-card-title::before,
.res-card-title::after,
.res-item h3::before,
.res-item h3::after,
.res-empty h3::before,
.res-empty h3::after {
	content: none;
	display: none;
}

.res-card-note {
	font-size: .785rem;
	color: var(--res-muted);
}

/* ---------- PULSE-ART card (the signature block) ---------- */
.res-card-pulse {
	--res-accent: #fff;
	background: linear-gradient(150deg, #171940 0%, #2a2d63 60%, #43215c 100%);
	border-color: transparent;
	color: #fff;
}

.res-card-pulse::before {
	background: linear-gradient(90deg, var(--res-magenta), var(--res-teal));
}

.res-page .res-card-pulse .res-card-title {
	color: #fff;
}

.res-card-pulse .res-card-note {
	color: rgba(255, 255, 255, .68);
}

.res-pulse-lead {
	margin: 0 0 11px;
	font-size: .81rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, .8);
}

.res-pulse-watermark {
	position: absolute;
	right: -18px;
	bottom: -34px;
	font-size: 5rem;
	font-weight: 900;
	letter-spacing: -.06em;
	color: rgba(255, 255, 255, .05);
	pointer-events: none;
	user-select: none;
	line-height: 1;
}

/* ---------- Chips ---------- */
.res-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	position: relative;
	z-index: 1;
}

.res-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--res-line);
	background: #fff;
	color: var(--res-ink);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: .855rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.res-chip:hover {
	border-color: var(--res-accent, var(--res-ink));
	transform: translateY(-1px);
}

.res-chip .res-chip-count {
	font-size: .78rem;
	font-weight: 700;
	color: var(--res-muted);
	background: rgba(23, 25, 64, .06);
	border-radius: 999px;
	padding: 0 6px;
}

.res-chip[aria-pressed="true"] {
	background: var(--res-accent, var(--res-ink));
	border-color: var(--res-accent, var(--res-ink));
	color: #fff;
}

.res-chip[aria-pressed="true"] .res-chip-count {
	background: rgba(255, 255, 255, .2);
	color: #fff;
}

.res-chip-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--res-dot, currentColor);
	flex: 0 0 auto;
}

.res-chip[aria-pressed="true"] .res-chip-dot {
	background: #fff;
}

/* PULSE-ART chips invert: light on dark */
.res-card-pulse .res-chip {
	background: rgba(255, 255, 255, .07);
	border-color: rgba(255, 255, 255, .28);
	color: #fff;
}

.res-card-pulse .res-chip:hover {
	border-color: #fff;
}

.res-card-pulse .res-chip .res-chip-count {
	background: rgba(255, 255, 255, .16);
	color: rgba(255, 255, 255, .9);
}

.res-card-pulse .res-chip[aria-pressed="true"] {
	background: #fff;
	border-color: #fff;
	color: var(--res-navy);
}

.res-card-pulse .res-chip[aria-pressed="true"] .res-chip-count {
	background: rgba(23, 25, 64, .1);
	color: var(--res-navy);
}

/* ============================================================
   3. ADVANCED SEARCH
   ============================================================ */
.res-advanced {
	margin-top: 14px;
	border-top: 1px solid var(--res-line-soft);
	padding-top: 10px;
}

.res-advanced-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	border: 0;
	background: transparent;
	padding: 6px 2px;
	cursor: pointer;
	font-size: .87rem;
	font-weight: 700;
	color: var(--res-ink);
	text-align: left;
}

.res-advanced-toggle .res-advanced-sub {
	font-weight: 400;
	color: var(--res-muted);
	font-size: .79rem;
}

.res-advanced-toggle .res-caret {
	margin-left: auto;
	transition: transform .22s ease;
	color: var(--res-muted);
	font-size: .8rem;
}

.res-advanced.is-open .res-caret {
	transform: rotate(180deg);
}

.res-advanced-body {
	background: #f7f8fa;
	border: 1px solid var(--res-line-soft);
	border-radius: 11px;
	padding: 16px;
	margin-top: 8px;
}

.res-advanced-body[hidden] {
	display: none;
}

.res-fields {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 11px 14px;
}

@media (max-width: 1099px) {
	.res-fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.res-fields {
		grid-template-columns: 1fr;
	}
}

.res-field > label,
.res-field > .res-field-label,
.res-cluster-group > .res-field-label {
	display: block;
	margin-bottom: 5px;
	font-size: .785rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--res-muted);
}

.res-field select,
.res-field input[type="text"] {
	width: 100%;
	border: 1px solid var(--res-line);
	border-radius: 8px;
	background: #fff;
	padding: 8px 10px;
	font-size: .85rem;
	font-weight: 500;
	color: var(--res-ink);
}

.res-field select:focus,
.res-field input[type="text"]:focus {
	outline: 0;
	border-color: var(--res-blue);
	box-shadow: 0 0 0 3px rgba(47, 91, 179, .12);
}

.res-field-year {
	display: flex;
	align-items: center;
	gap: 8px;
}

.res-field-year span {
	font-size: .8rem;
	color: var(--res-muted);
}

/* ---------- Multi-select dropdown ---------- */
.res-multi {
	position: relative;
}

.res-multi-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	border: 1px solid var(--res-line);
	border-radius: 8px;
	background: #fff;
	padding: 8px 10px;
	font-size: .85rem;
	font-weight: 500;
	color: var(--res-ink);
	cursor: pointer;
	text-align: left;
}

.res-multi-btn:focus-visible {
	outline: 0;
	border-color: var(--res-blue);
	box-shadow: 0 0 0 3px rgba(47, 91, 179, .12);
}

.res-multi-btn .res-multi-value {
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.res-multi-btn .res-multi-value.is-placeholder {
	color: #6b7080;
	font-weight: 400;
}

.res-multi-btn .res-caret {
	color: var(--res-muted);
	font-size: .7rem;
}

.res-multi-pop {
	position: absolute;
	z-index: 40;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	min-width: 240px;
	background: #fff;
	border: 1px solid var(--res-line);
	border-radius: 12px;
	box-shadow: var(--res-shadow-lg);
	padding: 8px;
	max-height: 280px;
	overflow-y: auto;
}

.res-multi-pop[hidden] {
	display: none;
}

.res-multi-opt {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 6px 8px;
	border-radius: 6px;
	font-size: .84rem;
	color: var(--res-ink);
	cursor: pointer;
}

.res-multi-opt:hover {
	background: rgba(23, 25, 64, .05);
}

.res-multi-opt input {
	accent-color: var(--res-magenta);
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
}

.res-multi-opt .res-multi-count {
	margin-left: auto;
	font-size: .76rem;
	color: var(--res-muted);
}

/* ---------- Cluster tags (Competence Framework) ---------- */
.res-clusters {
	margin-top: 14px;
	border-top: 1px dashed var(--res-line);
	padding-top: 13px;
}

.res-cluster-group + .res-cluster-group {
	margin-top: 11px;
}

.res-cluster-group .res-field-label {
	display: flex;
	align-items: center;
	gap: 8px;
}

.res-cluster-learners {
	--res-accent: var(--res-teal);
}

.res-cluster-educators {
	--res-accent: var(--res-magenta);
}

/* ---------- Advanced footer ---------- */
.res-advanced-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 15px;
	padding-top: 12px;
	border-top: 1px solid var(--res-line-soft);
}

.res-btn {
	border-radius: 999px;
	border: 1px solid var(--res-line);
	background: #fff;
	color: var(--res-ink);
	font-weight: 600;
	font-size: .81rem;
	padding: 8px 17px;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.res-btn:hover {
	border-color: var(--res-ink);
}

.res-btn-primary {
	background: var(--res-navy);
	border-color: var(--res-navy);
	color: #fff;
}

.res-btn-primary:hover {
	background: #0f1130;
	border-color: #0f1130;
}

.res-advanced-actions .res-advanced-count {
	margin-left: auto;
	font-size: .85rem;
	color: var(--res-muted);
}

/* ============================================================
   4. ACTIVE FILTERS + TOOLBAR
   ============================================================ */
/* The results header scrolls away with the page. It was sticky, but a
   translucent bar riding over the cards read as broken text. Feedback after
   a filter change is handled by revealResults() in the script instead.

   To bring the sticky behaviour back, it needs an opaque coloured bar, not a
   white one: add .res-results-head-sticky to the wrapper. */
/* A band of its own. On plain white the count, sort and buttons sat flush
   against the first row of cards and read as part of them. */
.res-results-head {
	background: #f6f7fa;
	border: 1px solid var(--res-line);
	border-radius: 10px;
	padding: 12px 16px;
	margin: 8px 0 20px;
}

.res-results-head-sticky {
	position: sticky;
	top: var(--res-sticky-top);
	z-index: 20;
	background: var(--res-navy);
	color: #fff;
	padding: 12px 18px;
	margin-top: 6px;
}

.res-results-head-sticky .res-count,
.res-results-head-sticky .res-count strong,
.res-results-head-sticky .res-sort,
.res-results-head-sticky .res-active-label { color: #fff; }

.res-results-head-sticky .res-toolbar { border-bottom: 0; padding-bottom: 0; margin: 0; }

.res-active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--res-line);
}

.res-active[hidden] {
	display: none;
}

.res-active-label {
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--res-muted);
	margin-right: 4px;
}

.res-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--res-line);
	border-radius: 999px;
	padding: 4px 6px 4px 11px;
	font-size: .78rem;
	font-weight: 600;
	color: var(--res-ink);
	box-shadow: 0 2px 6px rgba(23, 25, 64, .05);
}

.res-pill em {
	font-style: normal;
	font-weight: 400;
	color: var(--res-muted);
	font-size: .76rem;
}

.res-pill button {
	border: 0;
	background: rgba(23, 25, 64, .07);
	color: var(--res-ink);
	width: 18px;
	height: 18px;
	border-radius: 50%;
	line-height: 1;
	font-size: .95rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.res-pill button:hover {
	background: var(--res-magenta);
	color: #fff;
}

.res-clear-all {
	border: 0;
	background: transparent;
	color: var(--res-magenta);
	font-size: .84rem;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
	padding: 6px 4px;
}

.res-toolbar {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.res-count {
	font-size: .87rem;
	color: var(--res-muted);
	margin: 0;
}

.res-count strong {
	color: var(--res-ink);
	font-size: 1.1rem;
	font-weight: 800;
	margin-right: 4px;
}

.res-toolbar-right {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
}

.res-sort {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .85rem;
	color: #555968;
}

.res-sort select {
	border: 1px solid var(--res-line);
	background-color: #fff;
	border-radius: 999px;
	padding: 6px 12px;
	background: #fff;
	font-size: .8rem;
	font-weight: 600;
	color: var(--res-ink);
}

.res-view {
	display: inline-flex;
	border: 1px solid var(--res-line);
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}

.res-view button {
	border: 0;
	background: transparent;
	padding: 6px 12px;
	font-size: .78rem;
	font-weight: 600;
	color: var(--res-muted);
	cursor: pointer;
}

.res-view button[aria-pressed="true"] {
	background: var(--res-navy);
	color: #fff;
}

/* ============================================================
   5. RESULT CARDS
   ============================================================ */
.res-results {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	padding-bottom: 16px;
}

@media (max-width: 991px) {
	.res-results {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.res-results {
		grid-template-columns: 1fr;
	}
}

.res-results.is-list {
	grid-template-columns: 1fr;
}

.res-item {
	position: relative;
	display: grid;
	grid-template-columns: 86px minmax(0, 1fr);
	grid-template-rows: 1fr auto;
	grid-template-areas:
		"media main"
		"media side";
	column-gap: 15px;
	background: #fff;
	border: 1px solid var(--res-line);
	border-radius: var(--res-radius);
	padding: 15px 17px 13px 0;
	box-shadow: var(--res-shadow);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	overflow: hidden;
}

.res-item::before {
	content: none;
}

.res-item:hover {
	transform: translateY(-2px);
	box-shadow: var(--res-shadow-lg);
	border-color: rgba(23, 25, 64, .2);
}

.res-type-policy {
	--res-accent: #3a5fe0;
}

.res-type-academic {
	--res-accent: #e2007a;
}

.res-type-projects {
	--res-accent: #e85c1a;
}

.res-type-framework {
	--res-accent: #b58b00;
}

.res-type-toolkit {
	--res-accent: #562db6;
}

.res-type-other {
	--res-accent: #3c4e62;
}

.res-item-top {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 9px;
}

.res-badge {
	font-size: .755rem;
	font-weight: 800;
	letter-spacing: .085em;
	text-transform: uppercase;
	color: var(--res-accent);
	background: color-mix(in srgb, var(--res-accent) 10%, #fff);
	border-radius: 999px;
	padding: 3px 9px;
}

.res-badge-pa {
	background: var(--res-navy);
	color: #fff;
	letter-spacing: .08em;
}

.res-badge-doc {
	font-size: .75rem;
	font-weight: 600;
	color: var(--res-muted);
	text-transform: none;
	letter-spacing: 0;
	background: transparent;
	padding: 3px 0;
}

.res-item h3 {
	margin: 0 0 7px;
	font-size: 1.01rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--res-ink);
	letter-spacing: -.01em;
}

.res-item h3 a {
	color: inherit;
	text-decoration: none;
}

.res-item h3 a:hover {
	color: var(--res-magenta);
	text-decoration: none;
}

.res-item p {
	margin: 0 0 10px;
	font-size: .885rem;
	line-height: 1.55;
	color: var(--res-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.res-results.is-list .res-item p {
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.res-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 9px;
	font-size: .79rem;
	color: var(--res-muted);
	margin-bottom: 10px;
}

.res-meta > .res-meta-row + .res-meta-row::before {
	content: "";
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: .45;
	margin-right: 4px;
}

.res-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 11px;
}

.res-tag {
	font-size: .785rem;
	font-weight: 600;
	color: var(--res-navy);
	background: rgba(23, 25, 64, .055);
	border-radius: 5px;
	padding: 3px 7px;
}

.res-tag-cluster {
	background: color-mix(in srgb, var(--res-teal) 12%, #fff);
	color: #14608a;
}

.res-tag-cluster-edu {
	background: color-mix(in srgb, var(--res-magenta) 10%, #fff);
	color: var(--res-magenta-dark);
}

.res-item-main {
	grid-area: main;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* ---------- Generative cover ---------- */
.res-item-media {
	grid-area: media;
	position: relative;
	align-self: stretch;
	/* pull past the card padding so the cover sits flush with the edge */
	margin: -15px 0 -13px 0;
	border-right: 1px solid var(--res-line-soft);
	border-radius: var(--res-radius) 0 0 var(--res-radius);
	overflow: hidden;
	background: #eef0f4;
}

.res-item-media .resource-cover {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

@media (max-width: 400px) {
	.res-item {
		grid-template-columns: 62px minmax(0, 1fr);
		column-gap: 12px;
	}
}

.res-item-side {
	grid-area: side;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.res-item-foot {
	padding-top: 10px;
	border-top: 1px solid var(--res-line-soft);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.res-open {
	font-size: .865rem;
	font-weight: 700;
	color: var(--res-magenta);
	text-decoration: none;
}

.res-open:hover {
	text-decoration: underline;
}

.res-open .res-arrow {
	transition: transform .18s ease;
	display: inline-block;
}

.res-item:hover .res-open .res-arrow {
	transform: translateX(3px);
}

.res-format {
	font-size: .785rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--res-muted);
	border: 1px solid var(--res-line);
	border-radius: 5px;
	padding: 2px 7px;
}

/* ---------- List view ---------- */
@media (min-width: 768px) {
	.res-results.is-list .res-item {
		grid-template-columns: 96px minmax(0, 1fr) 220px;
		grid-template-rows: auto;
		grid-template-areas: "media main side";
		column-gap: 18px;
		align-items: stretch;
	}

	.res-results.is-list .res-item-side {
		justify-content: space-between;
		border-left: 1px solid var(--res-line-soft);
		padding-left: 18px;
	}

	.res-results.is-list .res-tags { margin-bottom: 0; }

	.res-results.is-list .res-item-foot {
		border-top: 0;
		padding-top: 12px;
	}
}

/* ---------- Empty state ---------- */
.res-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 46px 20px;
	border: 1px dashed var(--res-line);
	border-radius: var(--res-radius);
	background: #fff;
}

.res-empty h3 {
	margin: 0 0 8px;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--res-ink);
}

.res-empty p {
	margin: 0 auto 18px;
	max-width: 460px;
	color: var(--res-muted);
	font-size: .93rem;
	line-height: 1.55;
}

/* ---------- Load more ---------- */
.res-more {
	text-align: center;
	padding: 8px 0 40px;
}

.res-more[hidden] {
	display: none;
}

/* ---------- Accessibility ---------- */
.res-page :focus-visible {
	outline: 3px solid rgba(47, 91, 179, .45);
	outline-offset: 2px;
	border-radius: 6px;
}

.res-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.res-page * {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}

/* ============================================================
   6. STANDALONE PREVIEW FALLBACKS
   Only used when the page is opened outside the site (without
   bootstrap / theme.css). Safe to delete once integrated.
   ============================================================ */
.res-page .container {
	width: 100%;
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

.res-tag-more {
	background: transparent;
	border: 1px dashed var(--res-line);
	color: var(--res-muted);
}

/* ============================================================
   7. DEAD-END FILTERS
   A chip or option that would return zero results under the
   filters already chosen is dimmed rather than hidden, so the
   shape of the collection stays visible.
   ============================================================ */
.res-chip.is-empty,
.res-chip[disabled] {
	opacity: .38;
	cursor: not-allowed;
	transform: none;
}

.res-chip.is-empty:hover {
	border-color: var(--res-line);
	transform: none;
}

.res-card-pulse .res-chip.is-empty {
	opacity: .32;
}

.res-multi-opt.is-empty {
	opacity: .4;
	cursor: not-allowed;
}

.res-multi-opt.is-empty:hover {
	background: transparent;
}

.res-field select option:disabled {
	color: #a7abb8;
}

/* keep a tag on one line — a broken tag reads as a layout mistake */
.res-tag {
	white-space: nowrap;
}

/* ============================================================
   8. ICONS AND LABELLED METADATA
   ============================================================ */
.res-i {
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: .75;
}

.res-badge .res-i {
	width: .95em;
	height: .95em;
	margin-right: 5px;
	stroke-width: 2;
	opacity: 1;
	vertical-align: -.12em;
}

.res-format .res-i {
	margin-right: 5px;
	vertical-align: -.14em;
}

.res-meta > .res-meta-row {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* in the card layout the icon alone identifies the field */
.res-meta > .res-meta-row > .res-meta-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.res-meta > .res-meta-row > .res-meta-value {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* report button, shared by every variant */
.res-report-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1px solid var(--res-line);
	border-radius: 999px;
	background: #fff;
	color: var(--res-ink);
	font-family: inherit;
	font-size: .84rem;
	font-weight: 700;
	padding: 7px 15px;
	cursor: pointer;
}

.res-report-btn:hover {
	border-color: var(--res-ink);
}

@media print {
	.res-search-panel,
	.x-hero,
	.res-toolbar-right,
	.res-more { display: none; }
}

/* ============================================================
   9. "HOW TO SEARCH" PANEL
   ============================================================ */
.res-help {
	margin-top: 12px;
}

.res-help-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--res-line);
	border-radius: 999px;
	background: #fff;
	color: var(--res-ink);
	font-family: inherit;
	font-size: .84rem;
	font-weight: 700;
	padding: 8px 16px;
	cursor: pointer;
	transition: border-color .16s ease, background .16s ease;
}

.res-help-btn:hover {
	border-color: var(--res-ink);
}

.res-help-btn[aria-expanded="true"] {
	background: var(--res-navy);
	border-color: var(--res-navy);
	color: #fff;
}

.res-help-panel {
	position: relative;
	margin-top: 12px;
	background: #f7f8fa;
	border: 1px solid var(--res-line);
	border-radius: 12px;
	padding: 22px 24px 18px;
}

.res-help-panel[hidden] {
	display: none;
}

.res-help-cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

@media (max-width: 820px) {
	.res-help-cols {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

.res-help-step .res-help-n {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin: 0 0 9px;
	border-radius: 50%;
	background: var(--res-magenta);
	color: #fff;
	font-size: .9rem;
	font-weight: 800;
	line-height: 1;
	flex: 0 0 auto;
}

.res-help-step h3,
.res-help-notes h3 {
	margin: 0 0 6px;
	font-size: .95rem;
	font-weight: 700;
	color: var(--res-ink);
	border: 0;
	padding: 0;
}

.res-help-step h3::before,
.res-help-step h3::after,
.res-help-notes h3::before,
.res-help-notes h3::after {
	content: none;
}

.res-help-step p {
	margin: 0;
	font-size: .875rem;
	line-height: 1.55;
	color: var(--res-muted);
}

.res-help-notes {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--res-line);
}

.res-help-notes ul {
	margin: 0;
	padding-left: 18px;
	columns: 2;
	column-gap: 30px;
}

@media (max-width: 820px) {
	.res-help-notes ul { columns: 1; }
}

.res-help-notes li {
	margin-bottom: 7px;
	font-size: .855rem;
	line-height: 1.5;
	color: var(--res-muted);
	break-inside: avoid;
}

.res-help-notes strong {
	color: var(--res-ink);
}

.res-help-close {
	margin-top: 14px;
	border: 1px solid var(--res-line);
	border-radius: 999px;
	background: #fff;
	color: var(--res-ink);
	font-family: inherit;
	font-size: .82rem;
	font-weight: 700;
	padding: 7px 18px;
	cursor: pointer;
}

.res-help-close:hover {
	border-color: var(--res-ink);
}

@media print {
	.res-help { display: none; }
}

/* ============================================================
   10. VISITOR MANUAL
   ============================================================ */
.res-manual-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1px solid var(--res-line);
	border-radius: 999px;
	background: #fff;
	color: var(--res-ink);
	font-family: inherit;
	font-size: .84rem;
	font-weight: 700;
	padding: 7px 15px;
	cursor: pointer;
}

.res-manual-btn:hover { border-color: var(--res-ink); }

.res-manual {
	position: fixed;
	inset: 0;
	z-index: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4vh 20px;
}

.res-manual[hidden] { display: none; }

.man-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 13, 36, .55);
}

.man-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(1020px, 100%);
	max-height: 92vh;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 24px 70px rgba(12, 13, 36, .34);
}

.man-head {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 22px 26px 18px;
	border-bottom: 1px solid var(--res-line);
	background: var(--res-navy);
	color: #fff;
}

.man-eyebrow {
	margin: 0 0 5px;
	font-size: .74rem;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #ff7ab8;
}

.man-head h2 {
	margin: 0;
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: -.015em;
	color: #fff;
	border: 0;
	padding: 0;
}

.man-head h2::before, .man-head h2::after { content: none; }

.man-head-actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
}

.man-print {
	border: 1px solid rgba(255, 255, 255, .4);
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font-family: inherit;
	font-size: .82rem;
	font-weight: 700;
	padding: 8px 16px;
	cursor: pointer;
}

.man-print:hover { background: rgba(255, 255, 255, .14); }

.man-close {
	border: 0;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.man-close:hover { background: rgba(255, 255, 255, .28); }

.man-scroll {
	display: grid;
	grid-template-columns: 236px minmax(0, 1fr);
	gap: 0;
	overflow: hidden;
	flex: 1 1 auto;
}

@media (max-width: 820px) {
	.man-scroll { grid-template-columns: 1fr; overflow-y: auto; }
}

.man-toc {
	border-right: 1px solid var(--res-line);
	background: #f7f8fa;
	padding: 20px 18px;
	overflow-y: auto;
}

@media (max-width: 820px) {
	.man-toc { border-right: 0; border-bottom: 1px solid var(--res-line); }
}

.man-toc-title {
	margin: 0 0 10px;
	font-size: .74rem;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--res-muted);
}

.man-toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.man-toc li { margin-bottom: 3px; }

.man-toc a {
	display: block;
	padding: 6px 9px;
	border-radius: 6px;
	font-size: .855rem;
	font-weight: 600;
	color: var(--res-ink);
	text-decoration: none;
}

.man-toc a:hover {
	background: rgba(23, 25, 64, .07);
	text-decoration: none;
}

.man-body {
	overflow-y: auto;
	padding: 24px 30px 34px;
	scroll-behavior: smooth;
}

.man-section {
	padding-bottom: 22px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--res-line-soft);
	scroll-margin-top: 12px;
}

.man-section:last-child { border-bottom: 0; margin-bottom: 0; }

.man-section h3 {
	display: flex;
	align-items: center;
	gap: 11px;
	margin: 0 0 10px;
	font-size: 1.12rem;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--res-ink);
	border: 0;
	padding: 0;
}

.man-section h3::before, .man-section h3::after { content: none; }

.man-section h3 span {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--res-magenta);
	color: #fff;
	font-size: .85rem;
	font-weight: 800;
}

.man-section h4 {
	margin: 16px 0 5px;
	font-size: .95rem;
	font-weight: 800;
	color: var(--res-ink);
	border: 0;
	padding: 0;
}

.man-section h4::before, .man-section h4::after { content: none; }

.man-section p,
.man-section li {
	font-size: .93rem;
	line-height: 1.62;
	color: #3a3e55;
	margin: 0 0 9px;
	max-width: 70ch;
}

.man-section ul {
	margin: 0 0 12px;
	padding-left: 20px;
}

.man-section strong { color: var(--res-ink); }

.man-section kbd {
	border: 1px solid var(--res-line);
	border-bottom-width: 2px;
	border-radius: 4px;
	background: #f4f5f8;
	padding: 1px 6px;
	font-family: inherit;
	font-size: .86em;
	font-weight: 700;
}

.man-table {
	border-collapse: collapse;
	width: 100%;
	margin: 10px 0 14px;
}

.man-table th,
.man-table td {
	border: 1px solid var(--res-line);
	padding: 8px 10px;
	text-align: left;
	vertical-align: top;
	font-size: .875rem;
	line-height: 1.5;
	color: #3a3e55;
}

.man-table th {
	background: #f4f5f8;
	font-size: .755rem;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--res-muted);
}

.man-table td:first-child {
	font-weight: 700;
	color: var(--res-ink);
	white-space: nowrap;
}

@media print { .res-manual, .res-manual-btn { display: none; } }
