/*
Theme Name: Uncode - Global Resources Database
Description: Uncode child theme — global resources database browse, filters, citations, and saved items.
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode-global-resources-database
*/

/* ==========================================================================
   Resources archive - JSTOR-style layout
   ========================================================================== */

/* Search bar - top center (standalone, archive template) */
.resources-search-bar {
	margin: 0 auto;
}

.resources-search-inner {
	max-width: 640px;
	margin: 0 auto;
}

.resources-search-form .resources-search-wrap {
	display: flex;
	align-items: stretch;
	gap: 0;
	border: 1px solid currentColor;
	border-radius: 4px;
	overflow: hidden;
}

.resources-search-input {
	flex: 1;
	min-width: 0;
	padding: 0.5em 1em;
	height: 44px;
	min-height: 44px;
	border: 0;
	font-size: 1em;
	font-family: inherit;
	line-height: 1.4;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.resources-search-input:focus {
	outline: 0;
}

.resources-search-submit {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 0.5em;
	height: 44px;
	min-height: 44px;
	border: 0;
	font-size: 1em;
	box-sizing: border-box;
	cursor: pointer;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	color: inherit;
}

.resources-search-submit:hover {
	opacity: 0.8;
}

.resources-search-submit svg {
	flex-shrink: 0;
}

.style-light .resources-search-wrap {
	border-color: rgba(0, 0, 0, 0.2);
}

.style-light .resources-search-input {
	background: #fff;
	color: #333;
}

.style-dark .resources-search-wrap {
	border-color: rgba(255, 255, 255, 0.25);
}

.style-dark .resources-search-input {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

/* Results bar: count + sort */
.resources-results-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

/* Active filter chips */
.resources-active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1rem 0;
}

/* Optional custom header block from Resources settings */
.resources-custom-header {
	margin: 0 0 1.25rem 0;
}

.resources-custom-header-image-wrap {
	margin: 0 0 0.85rem 0;
}

.resources-custom-header-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.resources-custom-header-title {
	margin: 0 0 0.35rem;
}

.resources-custom-header-description {
	margin: 0;
	opacity: 0.9;
}

.resources-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.55rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	text-decoration: none;
	color: inherit;
	font-size: 0.9em;
	line-height: 1.2;
	opacity: 0.9;
}

.resources-filter-chip:hover {
	opacity: 1;
}

.resources-filter-chip-x {
	font-size: 1.1em;
	line-height: 1;
	opacity: 0.75;
}

.resources-filter-chip:hover .resources-filter-chip-x {
	opacity: 1;
}

.resources-clear-filters {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.2rem;
	margin-left: 0.25rem;
	font-size: 0.9em;
	text-decoration: underline;
	text-underline-offset: 2px;
	color: inherit;
	opacity: 0.85;
}

.resources-clear-filters:hover {
	opacity: 1;
}

.resources-results-count {
	font-weight: 500;
	font-size: 1.15em;
}

.resources-results-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-shrink: 0;
}

/* Saved-only filter (bookmark); beside sort */
.resources-saved-filter-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.375rem;
	height: 2.375rem;
	padding: 0;
	box-sizing: border-box;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s, background 0.2s;
}

.resources-saved-filter-btn:hover,
.resources-saved-filter-btn:focus {
	opacity: 1;
}

/* At least one item in localStorage saved list */
.resources-saved-filter-btn.has-saved-items {
	opacity: 1;
	color: #141414;
	background: #ffde5a;
	border-color: rgba(0, 0, 0, 0.28);
}

.resources-saved-filter-btn.has-saved-items:hover,
.resources-saved-filter-btn.has-saved-items:focus {
	background: #f5d54d;
	border-color: rgba(0, 0, 0, 0.35);
}

.resources-saved-filter-btn.has-saved-items.is-active {
	box-shadow: inset 0 0 0 2px #141414;
	background: #f0cd45;
}

.style-dark .resources-saved-filter-btn.has-saved-items {
	color: #141414;
	background: #ffde5a;
	border-color: rgba(0, 0, 0, 0.3);
}

.style-dark .resources-saved-filter-btn.has-saved-items.is-active {
	box-shadow: inset 0 0 0 2px #141414;
	background: #f0cd45;
}

.resources-saved-filter-btn.is-active:not(.has-saved-items) {
	opacity: 1;
	background: rgba(0, 0, 0, 0.08);
}

.style-dark .resources-saved-filter-btn.is-active:not(.has-saved-items) {
	background: rgba(255, 255, 255, 0.12);
}

.resources-saved-filter-btn svg {
	display: block;
}

.resources-saved-filter-empty {
	grid-column: 1 / -1;
	padding: 2rem 1rem;
	text-align: center;
	font-size: 1rem;
	line-height: 1.45;
	opacity: 0.88;
}

/* Bulk selection bar (fixed bottom when ≥1 card checked) */
.resources-bulk-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 100000;
	padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
	background: #ffde5a;
	color: #141414;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
}

.resources-bulk-bar-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
}

.resources-bulk-bar-count {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
}

.resources-bulk-suffix {
	font-weight: 500;
	opacity: 0.9;
}

.resources-bulk-bar-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.resources-bulk-btn {
	border: 0;
	border-radius: 4px;
	padding: 0.6rem 1rem;
	font-size: 0.9rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	background: #fff;
	color: #141414;
	transition: opacity 0.15s ease, background 0.15s ease;
}

.resources-bulk-btn:hover:not(:disabled),
.resources-bulk-btn:focus:not(:disabled) {
	opacity: 0.92;
}

.resources-bulk-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.resources-bulk-btn--ghost {
	background: transparent;
	color: #141414;
	border: 1px solid rgba(0, 0, 0, 0.35);
}

.resources-bulk-btn--ghost:hover:not(:disabled),
.resources-bulk-btn--ghost:focus:not(:disabled) {
	background: rgba(0, 0, 0, 0.08);
	opacity: 1;
}

body.resources-bulk-bar-open.is-resources-view .post-content {
	padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

.style-dark .resources-bulk-bar {
	background: #ffde5a;
	color: #141414;
}

@media (max-width: 767px) {
	.resources-results-bar {
		align-items: flex-start;
	}

	.resources-results-count {
		width: 100%;
	}

	.resources-results-actions {
		width: 100%;
		justify-content: space-between;
		gap: 0.75rem;
		margin-top: 0.25rem;
	}

	.resources-sort-wrap {
		margin-left: auto;
	}
}

.resources-sort-wrap {
	display: flex;
	align-items: center;
	align-self: center;
	gap: 0.5rem;
	white-space: nowrap;
	flex-shrink: 0;
	height: 2.375rem;
	box-sizing: border-box;
}

.resources-sort-select {
	min-width: 12ch;
	height: 2.375rem;
	margin: 0;
	padding: 0 2em 0 0.65em;
	font-size: 0.9em;
	line-height: 1.2;
	vertical-align: middle;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='currentColor' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.5em center;
	background-size: 10px;
}

.style-light .resources-sort-select {
	border-color: rgba(0, 0, 0, 0.25);
}

.style-dark .resources-sort-select {
	border-color: rgba(255, 255, 255, 0.3);
}

/* Layout: filters left column + main content right (wider than default Uncode limit-width) */
.resources-layout {
	margin-top: 2rem;
	margin-bottom: 4rem;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

/* Full-bleed resources block — list + filter columns on white */
body.is-resources-view {
	--resources-filter-column-bg: #fff;
	/* 100vw + negative margins can widen the layout past the viewport; horizontal scroll hides fixed header/menu */
	overflow-x: hidden;
}

/*
 * Chrome (esp. with always-visible scrollbar): 100vw includes the scrollbar gutter so the breakout
 * is a few px wider than the layout viewport; Safari often uses overlay scrollbars so it “fits”.
 * Clipping on html catches stray overflow body alone sometimes misses.
 */
html:has(body.is-resources-view) {
	overflow-x: hidden;
	scrollbar-gutter: stable;
}

/* Primary header above the full-bleed strip (stacking / sticky overlap) */
body.is-resources-view #masthead {
	z-index: 10050 !important;
}

body.is-resources-view .resources-layout.row-container {
	/* Break out of Uncode’s constrained .post-body; html overflow-x + scrollbar-gutter mitigates Chrome vw/scrollbar overflow */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: max(1rem, env(safe-area-inset-left));
	padding-right: max(1rem, env(safe-area-inset-right));
	padding-top: 1.5rem;
	padding-bottom: 2.5rem;
	box-sizing: border-box;
	background: #fff;
	color: #141414;
}

/*
 * Left column: same white as main (beats Uncode/Bootstrap .col overrides).
 * Stretch + !important align-items wins if the parent theme sets flex-start on the row.
 */
body.is-resources-view .resources-layout .row.resources-layout-row {
	max-width: 100% !important;
	align-items: stretch !important;
}

body.is-resources-view .resources-layout .resources-sidebar-col {
	position: relative;
	box-sizing: border-box;
	align-self: stretch !important;
	display: flex;
	flex-direction: column;
	/* Avoid min-height: 100% — Chrome often won’t resolve % vs an auto-height flex parent; row align-items: stretch is enough */
	min-height: 0;
	background-color: var(--resources-filter-column-bg) !important;
	background-image: none !important;
	border-right: 1px solid rgba(0, 0, 0, 0.12);
}

body.is-resources-view .resources-layout .resources-sidebar-col .resources-filters-sidebar {
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
}

body.is-resources-view .resources-layout .resources-main-col {
	background: #fff;
	box-sizing: border-box;
}

/* Main column: readable text on white (overrides Uncode .style-dark light-on-dark inside this strip) */
body.is-resources-view .resources-layout.row-container .resources-main-col .post-content {
	color: #141414 !important;
}

body.is-resources-view .resources-layout.row-container .resources-main-col .post-title,
body.is-resources-view .resources-layout.row-container .resources-main-col .post-title a {
	color: #141414 !important;
}

body.is-resources-view .resources-layout.row-container .resources-sort-select {
	color: #141414 !important;
	border-color: rgba(0, 0, 0, 0.35) !important;
	background-color: #fff !important;
}

body.is-resources-view .resources-layout.row-container .resources-results-count {
	color: #141414;
}

body.is-resources-view .resources-layout.row-container .resources-saved-filter-btn:not(.has-saved-items) {
	color: #141414;
	border-color: rgba(0, 0, 0, 0.35);
	opacity: 0.85;
}

/* Yellow bookmark when localStorage has ≥1 saved item (results bar is on white) */
body.is-resources-view .resources-layout.row-container .resources-saved-filter-btn.has-saved-items {
	background: #ffde5a;
	border-color: rgba(0, 0, 0, 0.28);
	color: #141414;
}

body.is-resources-view .resources-layout.row-container .resources-saved-filter-btn.has-saved-items:hover,
body.is-resources-view .resources-layout.row-container .resources-saved-filter-btn.has-saved-items:focus {
	background: #f5d54d;
	border-color: rgba(0, 0, 0, 0.35);
}

body.is-resources-view .resources-layout.row-container .resources-saved-filter-btn.has-saved-items.is-active {
	background: #f0cd45;
	box-shadow: inset 0 0 0 2px #141414;
}

/* Desktop: two columns fill most of the viewport; list column grows with the row */
@media (min-width: 960px) {
	body.is-resources-view .resources-layout.row-container {
		padding-left: max(0px, env(safe-area-inset-left));
		/* Tall strip: ~viewport minus header/footer breathing room (tweak if your header is very tall) */
		min-height: calc(100vh - 6rem);
		min-height: calc(100dvh - 6rem);
	}

	body.is-resources-view .resources-layout .resources-sidebar-col {
		padding-left: 1rem;
		padding-right: 0.25rem;
	}

	/* Main column fills row height so the list sits in a tall right pane next to filters */
	body.is-resources-view .resources-layout .resources-main-col {
		display: flex;
		flex-direction: column;
		align-self: stretch;
		min-height: 0;
	}

	body.is-resources-view .resources-layout.row-container .resources-main-col .post-content {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	body.is-resources-view .resources-main-col #resources-results-grid {
		flex: 1 1 auto;
		min-height: 0;
	}

	/*
	 * Uncode often pads .post-content; that padding sits *inside* the centered column, so the
	 * 100vw breakout still leaves a gap. Drop left padding here so the layout aligns with the viewport edge.
	 */
	body.is-resources-view .page-body .post-body .post-content {
		padding-left: 0 !important;
	}
}

body.is-resources-view .resources-layout .row.row-parent.resources-layout-row {
	max-width: 100% !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box;
	/* Narrower than Uncode row-parent / limit-width defaults */
	padding-left: max(0.65rem, env(safe-area-inset-left)) !important;
	padding-right: max(0.65rem, env(safe-area-inset-right)) !important;
}

/* Flex on the row: sidebar + main are direct children (no extra .row-inner) */
.resources-layout .row.resources-layout-row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 1.75rem 2rem;
}

.resources-layout .resources-sidebar-col {
	min-width: 0;
}

.resources-layout .resources-main-col {
	flex: 1 1 0;
	min-width: 0;
	max-width: none;
	overflow-x: hidden; /* prevent Uncode full-width rows from overlapping sidebar */
}

/* Match template col-lg-3 / col-lg-9 (25% / 75%) on desktop — scales with page width */
@media (min-width: 960px) {
	body.is-resources-view .resources-layout .row.resources-layout-row {
		flex-wrap: nowrap !important;
	}

	body.is-resources-view .resources-layout .resources-sidebar-col.col {
		flex: 0 0 25% !important;
		width: 25% !important;
		max-width: 25% !important;
		min-width: 0;
		float: none !important;
	}

	body.is-resources-view .resources-layout .resources-main-col.col {
		flex: 1 1 0% !important;
		flex-basis: 0 !important;
		width: auto !important;
		max-width: none !important;
		min-width: 0;
		float: none !important;
	}
}

/* Contain Uncode index/rows inside our column - prevent full-width breakout */
.resources-main-col .vc_row,
.resources-main-col .row-container,
.resources-main-col [class*="limit-width"] {
	max-width: 100% !important;
}
.resources-main-col .vc_row {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

@media (max-width: 959px) {
	.resources-layout .resources-sidebar-col {
		flex: 0 0 100%;
		min-width: 100%;
	}

	body.is-resources-view .resources-layout .resources-sidebar-col {
		border-right: 0;
		border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	}

	.resources-layout .resources-filters-sidebar {
		border-radius: 0;
		border-bottom: 0;
		padding: 0 0 1.25rem;
	}

	.resources-layout .resources-main-col {
		flex: 0 0 100%;
		min-width: 100%;
		margin-top: 1.5rem;
	}
}

/* No results message */
.resources-no-results {
	padding: 2rem 0;
	text-align: center;
}

.resources-no-results-text {
	margin: 0;
	font-size: 1.1em;
	opacity: 0.85;
}

/* Filters: transparent inner; column fill comes from .resources-sidebar-col */
.resources-filters-sidebar {
	--resources-filter-panel-fg: #141414;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0.35rem 1.15rem 1.5rem 0;
	box-sizing: border-box;
	background: transparent;
	color: var(--resources-filter-panel-fg);
	border-radius: 0;
	box-shadow: none;
	border-right: 0;
}

.resources-layout .resources-filters-sidebar.style-light,
.resources-layout .resources-filters-sidebar.style-dark {
	background: transparent;
	color: var(--resources-filter-panel-fg);
}

.resources-layout .resources-filters-sidebar a {
	color: var(--resources-filter-panel-fg);
}

.resources-layout .resources-filters-sidebar .resources-filters-search {
	border-color: rgba(0, 0, 0, 0.22);
	background: #fff;
}

.resources-layout .resources-filters-sidebar .resources-filter-search-input,
.resources-layout .resources-filters-sidebar .resources-filter-search-submit {
	background: #fff !important;
	color: #333 !important;
}

.resources-layout .resources-filters-sidebar .resources-filter-search-input::placeholder {
	color: #333;
	opacity: 0.45;
}

.resources-layout .resources-filters-sidebar .resources-filter-search-submit {
	border-left-color: rgba(0, 0, 0, 0.12);
	color: #333 !important;
}

.resources-layout .resources-filters-sidebar .resources-filter-search-input:-webkit-autofill,
.resources-layout .resources-filters-sidebar .resources-filter-search-input:-webkit-autofill:hover,
.resources-layout .resources-filters-sidebar .resources-filter-search-input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 30px #fff inset !important;
}

.resources-layout .resources-filters-sidebar .resources-filter-dropdown {
	border-color: rgba(0, 0, 0, 0.28);
	background: transparent;
}

.resources-layout .resources-filters-sidebar .resources-filter-dropdown-summary {
	color: var(--resources-filter-panel-fg);
}

.resources-layout .resources-filters-sidebar .resources-filter-checklist {
	color: var(--resources-filter-panel-fg);
}

.resources-filters-inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.resources-filters-form {
	margin: 0;
}

.resources-filters-search-title {
	margin: 0 0 0.5rem;
	font-weight: 600;
	font-size: 0.9em;
}

.resources-filters-search {
	display: flex;
	align-items: stretch;
	flex-direction: row;
	gap: 0;
	margin-bottom: 1.25rem;
	border: 1px solid currentColor;
	border-radius: 4px;
	overflow: hidden;
	min-height: 52px;
	box-shadow: none;
}

.resources-filter-search-input {
	flex: 1 1 auto;
	align-self: stretch;
	width: 100%;
	min-width: 0;
	min-height: 52px;
	height: auto;
	padding: 0.65em 0.85em;
	border: 0;
	font-size: 0.95em;
	line-height: 1.4;
	box-sizing: border-box;
	background: transparent;
	background-clip: padding-box;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
	-webkit-box-shadow: none;
}

.resources-filter-search-input::-webkit-search-cancel-button,
.resources-filter-search-input::-webkit-search-decoration,
.resources-filter-search-input::-webkit-search-results-button,
.resources-filter-search-input::-webkit-search-results-decoration {
	display: none;
	-webkit-appearance: none;
	appearance: none;
}

.resources-filter-search-input::placeholder {
	color: inherit;
	opacity: 0.5;
}

.resources-filter-search-input:focus {
	outline: 0;
	box-shadow: none;
	-webkit-box-shadow: none;
}

.resources-filter-search-input::-moz-focus-inner {
	border: 0;
}

.resources-filter-search-submit {
	position: relative;
	flex: 0 0 auto;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 0.65em;
	min-width: 2.75em;
	border: 0;
	border-left: 1px solid rgba(0, 0, 0, 0.12);
	background: transparent !important;
	box-shadow: none;
	outline: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	color: inherit;
}

.style-dark .resources-filter-search-submit {
	border-left-color: rgba(255, 255, 255, 0.15);
}

.resources-filter-search-submit:hover,
.resources-filter-search-submit:focus {
	opacity: 0.8;
	background: transparent !important;
	outline: none;
}

.resources-filter-search-submit svg {
	flex-shrink: 0;
}

.style-light .resources-filters-search {
	border-color: rgba(0, 0, 0, 0.2);
	background: #fff;
}

.style-light .resources-filter-search-input,
.style-light .resources-filter-search-submit {
	background: #fff !important;
}

.style-light .resources-filter-search-input {
	color: #333;
}

.style-light .resources-filter-search-input:-webkit-autofill,
.style-light .resources-filter-search-input:-webkit-autofill:hover,
.style-light .resources-filter-search-input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 30px #fff inset !important;
}

.style-dark .resources-filters-search {
	border-color: rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.08);
}

.style-dark .resources-filter-search-input,
.style-dark .resources-filter-search-submit {
	background: rgba(255, 255, 255, 0.08) !important;
}

.style-dark .resources-filter-search-input {
	color: #fff;
}

.style-dark .resources-filter-search-input:-webkit-autofill,
.style-dark .resources-filter-search-input:-webkit-autofill:hover,
.style-dark .resources-filter-search-input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.08) inset !important;
}

.resources-filters-title {
	margin: 0 0 1rem;
	font-weight: 600;
}

.resources-filters-title a {
	text-decoration: none;
}

.resources-filters-title a:hover {
	text-decoration: underline;
}

.resources-filter-dropdown {
	margin: 0 0 0.75rem;
	border: 1px solid currentColor;
	border-radius: 4px;
	overflow: hidden;
	display: block;
	width: 100%;
	max-width: 100%;
}

.resources-filter-dropdown-summary {
	padding: 0.6em 0.75em;
	font-weight: 600;
	font-size: 0.9em;
	cursor: pointer;
	list-style: none;
	user-select: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.resources-filter-dropdown-summary::-webkit-details-marker {
	display: none;
}

.resources-filter-dropdown-summary::after {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 0.5em;
	vertical-align: middle;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
	transition: transform 0.2s;
}

.resources-filter-dropdown[open] .resources-filter-dropdown-summary::after {
	transform: rotate(180deg);
}

.resources-filter-group {
	margin: 0 0 1.25rem 0;
	padding: 0;
	border: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
	min-inline-size: 0;
	max-width: 100%;
	/* Avoid floated legend + list sitting in two columns */
	clear: both;
	overflow: visible;
}

/* Inset checklists from the dropdown border — extra horizontal padding so checkboxes aren’t flush to the frame */
.resources-layout .resources-filters-sidebar .resources-filter-dropdown > fieldset.resources-filter-group {
	margin: 0;
	padding: 0.85rem 1.35rem 1.1rem;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}

.resources-layout .resources-filters-sidebar .resources-filter-dropdown .resources-filter-checklist {
	padding-inline: 0.35rem 0.5rem;
	box-sizing: border-box;
}

/* Legend: block above checklist (do not float — breaks alignment in narrow sidebars) */
.resources-filter-legend {
	float: none;
	width: 100%;
	margin: 0 0 0.5rem 0;
	padding: 0;
	font-weight: 600;
	font-size: 0.9em;
	line-height: 1.3;
}

.resources-filter-group .resources-filter-checklist {
	margin-top: 0;
	width: 100%;
	min-width: 0;
}

.style-light .resources-filter-dropdown {
	border-color: rgba(0, 0, 0, 0.2);
}

.style-dark .resources-filter-dropdown {
	border-color: rgba(255, 255, 255, 0.25);
}

.resources-filter-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 1;
	-webkit-columns: 1;
	-moz-columns: 1;
}

.resources-filter-checklist li {
	margin: 0.25rem 0;
}

.resources-filter-checklist label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	cursor: pointer;
	font-weight: 400;
	width: 100%;
	min-width: 0;
}

@media (max-width: 959px) {
	/* Defensive overrides in case the parent theme applies multi-column/floats on small screens */
	.resources-filters-sidebar,
	.resources-filters-form,
	.resources-filters-inner,
	.resources-filter-dropdown,
	.resources-filter-group,
	.resources-filter-checklist,
	.resources-filter-checklist li {
		float: none !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	.resources-filter-checklist {
		column-count: 1 !important;
		columns: 1 !important;
	}
}

.resources-filter-checklist input[type="checkbox"] {
	flex-shrink: 0;
	align-self: flex-start;
	margin: 0.15em 0 0;
	width: 1.2rem;
	height: 1.2rem;
	min-width: 1.2rem;
	min-height: 1.2rem;
	accent-color: currentColor;
	cursor: pointer;
}

.style-light .resources-filter-checklist input[type="checkbox"] {
	border: 1px solid rgba(0, 0, 0, 0.35);
}

.style-dark .resources-filter-checklist input[type="checkbox"] {
	border: 1px solid rgba(255, 255, 255, 0.45);
}

.resources-filters-apply {
	margin-top: 1rem;
	padding: 0.5em 1em;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	font-size: 0.95em;
	cursor: pointer;
}

.resources-filters-apply:hover {
	opacity: 0.85;
}

/* Infinite scroll: next page loads when sentinel nears viewport (pagination links removed on page template) */
.resources-infinite-scroll-sentinel {
	width: 100%;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

#resources-results-grid.resources-results-grid--loading {
	opacity: 0.92;
	transition: opacity 0.2s ease;
}

/* Resources results: list rows (JSTOR-style) */
.resources-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	align-items: stretch;
}

.resources-grid .resource-card {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	padding: 1.5rem 0;
	margin: 0;
}

.resources-grid .resource-card:first-child {
	padding-top: 0;
}

.resources-grid .resource-card:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.style-dark .resources-grid .resource-card {
	border-bottom-color: rgba(255, 255, 255, 0.12);
}

.resource-card-inner {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 1.25rem;
	width: 100%;
	text-align: left;
}

/* Bulk selection: soft tint; vertical padding/margin only so actions row does not shift sideways */
.resources-grid .resource-card:has(.resource-card-select:checked) .resource-card-inner {
	background-color: #fff9ec;
	background-color: color-mix(in srgb, #ffde5a 18%, white);
	border-radius: 6px;
	padding: 1rem 0;
	margin: -1rem 0;
	transition:
		background-color 0.2s ease,
		padding 0.2s ease,
		margin 0.2s ease;
}

.style-dark .resources-grid .resource-card:has(.resource-card-select:checked) .resource-card-inner {
	background-color: rgba(255, 222, 90, 0.12);
	background-color: color-mix(in srgb, #ffde5a 14%, transparent);
	border-radius: 6px;
	padding: 1rem 0;
	margin: -1rem 0;
}

.resource-card-select-cell {
	flex: 0 0 auto;
	align-self: center;
}

/* Save + bulk checkbox (checkbox on the right) */
.resource-card-save-with-select {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: nowrap;
	flex: 0 0 auto;
}

.resource-card-actions .resource-card-select-cell {
	padding-top: 0;
}

.resource-card-select-label {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	margin: 0;
	cursor: pointer;
}

/* List view: no border on bulk checkbox control; label is hit area only */
.resource-card-actions .resource-card-select-label {
	box-sizing: border-box;
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: 0.45rem 0.55rem;
	border: none;
	border-radius: 4px;
	background: transparent;
	transition: background 0.15s ease;
}

.resource-card-actions .resource-card-select-label:hover {
	background: rgba(0, 0, 0, 0.06);
}

.resource-card-actions .resource-card-select-label:has(.resource-card-select:checked) {
	background: #ffde5a;
}

.resource-card-actions .resource-card-select-label:has(.resource-card-select:checked):hover {
	background: #f5d54d;
}

.style-dark .resource-card-actions .resource-card-select-label:hover {
	background: rgba(255, 255, 255, 0.08);
}

.style-dark .resource-card-actions .resource-card-select-label:has(.resource-card-select:checked) {
	background: #ffde5a;
}

.style-dark .resource-card-actions .resource-card-select-label:has(.resource-card-select:checked):hover {
	background: #f5d54d;
}

.resource-card-actions .resource-card-select-label .resource-card-select {
	-webkit-appearance: none;
	appearance: none;
	border: none;
	background-color: rgba(0, 0, 0, 0.08);
}

.resource-card-actions .resource-card-select-label .resource-card-select:checked {
	border: none;
	background-color: #ffde5a;
}

.style-dark .resource-card-actions .resource-card-select-label .resource-card-select {
	-webkit-appearance: none;
	appearance: none;
	border: none;
	background-color: rgba(255, 255, 255, 0.12);
}

.style-dark .resource-card-actions .resource-card-select-label .resource-card-select:checked {
	border: none;
	background-color: #ffde5a;
}

.resource-card-select {
	appearance: none;
	-webkit-appearance: none;
	width: 1.2rem;
	height: 1.2rem;
	min-width: 1.2rem;
	min-height: 1.2rem;
	margin: 0;
	box-sizing: border-box;
	flex-shrink: 0;
	border: 1px solid rgba(0, 0, 0, 0.35);
	border-radius: 3px;
	background: #fff;
	cursor: pointer;
}

.resource-card-select:checked {
	background-color: #ffde5a;
	border-color: rgba(0, 0, 0, 0.35);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
	background-size: 0.72rem 0.72rem;
	background-position: center;
	background-repeat: no-repeat;
}

.resource-card-select:focus-visible {
	outline: 2px solid rgba(0, 0, 0, 0.45);
	outline-offset: 2px;
}

.style-dark .resource-card-actions .resource-card-select {
	border: 1px solid rgba(255, 255, 255, 0.42);
	background: transparent;
}

.style-dark .resource-card-actions .resource-card-select:checked {
	border-color: rgba(255, 255, 255, 0.42);
	background-color: #ffde5a;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.style-dark .resource-card-actions .resource-card-select:focus-visible {
	outline-color: #ffde5a;
}

.resource-card-actions {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	align-items: center;
	justify-content: flex-start;
}

.resources-grid .resource-card-media {
	flex: 0 0 auto;
	width: 7.5rem;
	max-width: 28%;
	text-decoration: none;
	color: inherit;
}

.resources-grid .resource-card-media .resource-card-image {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border-radius: 4px;
	background: #eee;
}

.resources-grid .resource-card-media .resource-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.resources-grid .resource-card-body {
	flex: 1 1 0;
	min-width: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.resources-grid .resource-card-actions {
	flex: 0 0 auto;
	align-self: center;
	padding-left: 0.5rem;
}

.resources-grid .resource-card-excerpt {
	-webkit-line-clamp: 3;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Topic labels as chips, not bullets (theme ul/li resets) */
.resources-grid .resource-card-tags {
	list-style: none;
	list-style-type: none;
	margin: 0 0 0.5rem;
	padding: 0;
}

.resources-grid .resource-card-tags li {
	list-style: none;
	list-style-type: none;
	margin: 0;
	padding: 0;
	display: block;
}

.resources-grid .resource-card-tags li::marker {
	content: none;
}

.resources-grid .resource-card-tags li::before {
	content: none;
	display: none;
}

/* Meta line (type · territory; year is in byline only) */
.resources-grid .resource-card-meta-line {
	opacity: 1;
}

.resources-grid .resource-card-meta-line .resource-card-meta-link {
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-color: currentColor;
	cursor: pointer;
}

.resources-grid .resource-card-meta-line .resource-card-meta-link:hover,
.resources-grid .resource-card-meta-line .resource-card-meta-link:focus {
	opacity: 0.85;
}

.resources-grid .resource-card-author .resource-card-meta-link {
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-color: currentColor;
	cursor: pointer;
}

.resources-grid .resource-card-author .resource-card-meta-link:hover,
.resources-grid .resource-card-author .resource-card-meta-link:focus {
	opacity: 0.85;
}

.resource-card-meta-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-color: currentColor;
}

.resource-card-meta-link:hover,
.resource-card-meta-link:focus {
	opacity: 0.85;
}

a.resource-card-tag {
	text-decoration: none;
	color: inherit;
}

a.resource-card-tag:hover,
a.resource-card-tag:focus {
	text-decoration: underline;
	text-underline-offset: 2px;
	opacity: 0.9;
}

@media (max-width: 700px) {
	.resources-grid .resource-card-inner {
		flex-wrap: wrap;
	}
	.resources-grid .resource-card-media {
		width: 5.5rem;
		max-width: 35%;
	}
	.resources-grid .resource-card-actions {
		width: 100%;
		padding-left: 0;
		padding-top: 0.75rem;
		align-self: stretch;
		justify-content: flex-start;
	}
}

/* Ensure results area is visible */
.resources-layout .resources-main-col .post-content {
	overflow: visible;
}

.resources-main-col .resources-grid {
	margin: 0;
}

.resource-card-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e8e8e8;
}

.resources-grid .resource-card-title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.05rem, 1.1vw + 0.9rem, 1.35rem);
	font-weight: 600;
	line-height: 1.25;
	font-family: Georgia, "Times New Roman", Times, serif;
}

.resource-card-title a {
	text-decoration: none;
	color: inherit;
}

.resource-card-title a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.resource-card-author {
	margin: 0 0 0.35rem;
	font-size: 0.9rem;
	line-height: 1.45;
	opacity: 0.88;
}

.resource-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	list-style: none;
	margin: 0 0 0.5rem;
	padding: 0;
}

.resource-card-tag {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 500;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.08);
	cursor: pointer;
}

.style-dark .resource-card-tag {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.12);
}

.resource-card-excerpt {
	margin: 0 0 0.5rem;
	font-size: 0.9rem;
	line-height: 1.5;
	opacity: 0.85;
}

.resource-card-meta-line {
	margin: 0;
	font-size: 0.8rem;
	opacity: 0.65;
	line-height: 1.4;
}

.resource-card-btn {
	display: inline-block;
	padding: 0.55rem 1rem;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	color: #141414 !important;
	background: #ffde5a;
	border-radius: 4px;
	border: 1px solid #e6c84a;
	transition: background 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
}

.resource-card-btn:hover,
.resource-card-btn:focus {
	background: #f5d54d;
	border-color: #d4b63f;
	color: #141414 !important;
}

.resource-card-save-corner {
	position: absolute;
	top: -5px;
	right: -5px;
	display: none;
	align-items: center;
	justify-content: center;
	width: 1.125rem;
	height: 1.125rem;
	padding: 0;
	border-radius: 50%;
	background: #ffde5a;
	border: 1px solid rgba(0, 0, 0, 0.28);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
	line-height: 0;
	pointer-events: none;
}

.resource-card-btn--save.is-saved .resource-card-save-corner {
	display: flex;
}

.resource-card-save-corner svg {
	display: block;
	color: #141414;
}

/* Secondary: Save (outline; localStorage, not the primary Cite button) + corner bookmark when saved */
.resource-card-btn--save {
	position: relative;
	overflow: visible;
	padding-right: 0.65rem;
	background: transparent !important;
	color: #2b2b2b !important;
	border: 1px solid rgba(0, 0, 0, 0.35);
	font-family: inherit;
	cursor: pointer;
}

.resource-card-btn--save.is-saved {
	border-color: #8a7200;
	color: #3d3200 !important;
}

.resource-card:hover .resource-card-btn--save,
.resource-card-inner:hover .resource-card-btn--save {
	color: #2b2b2b !important;
}

.resource-card-btn--save:hover,
.resource-card-btn--save:focus {
	background: rgba(0, 0, 0, 0.06) !important;
	color: #2b2b2b !important;
	opacity: 1;
}

.resource-card-btn--save.is-saved:hover,
.resource-card-btn--save.is-saved:focus {
	color: #3d3200 !important;
}

.style-dark .resource-card-btn--save {
	color: rgba(255, 255, 255, 0.92) !important;
	border-color: rgba(255, 255, 255, 0.42);
}

.style-dark .resource-card-btn--save.is-saved {
	border-color: #ffde5a;
	color: #ffde5a !important;
}

.style-dark .resource-card-save-corner {
	background: #ffde5a;
	border-color: rgba(0, 0, 0, 0.28);
}

.style-dark .resource-card-save-corner svg {
	color: #141414;
}

.style-dark .resource-card:hover .resource-card-btn--save,
.style-dark .resource-card-inner:hover .resource-card-btn--save {
	color: rgba(255, 255, 255, 0.92) !important;
}

.style-dark .resource-card-btn--save:hover,
.style-dark .resource-card-btn--save:focus {
	background: rgba(255, 255, 255, 0.08) !important;
	color: rgba(255, 255, 255, 0.92) !important;
}

.style-dark .resource-card-btn:not(.resource-card-btn--save) {
	background: #ffde5a;
	border-color: #e6c84a;
	color: #141414 !important;
}

.style-dark .resource-card-btn:hover:not(.resource-card-btn--save),
.style-dark .resource-card-btn:focus:not(.resource-card-btn--save) {
	background: #f5d54d;
	border-color: #d4b63f;
	color: #141414 !important;
}

.style-dark .resource-card-image-placeholder {
	background: rgba(255, 255, 255, 0.08);
}

/* Cite modal (MLA / Chicago / APA + RIS / BibTeX export) */
body.resource-cite-modal-open {
	overflow: hidden;
}

.resource-cite-modal {
	position: fixed;
	inset: 0;
	z-index: 500000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.resource-cite-modal[hidden] {
	display: none !important;
}

.resource-cite-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	cursor: pointer;
}

.resource-cite-modal__dialog {
	position: relative;
	z-index: 1;
	background: var(--uncode-block-bg, #fff);
	color: inherit;
	max-width: 36rem;
	width: 100%;
	max-height: min(92vh, 640px);
	overflow: auto;
	border-radius: 8px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
	padding: 1.25rem 1.5rem 1.5rem;
	-webkit-overflow-scrolling: touch;
}

.resource-cite-modal__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1rem;
}

.resource-cite-modal__title {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.3;
}

.resource-cite-modal__close {
	background: none;
	border: 0;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.2rem 0.35rem;
	border-radius: 6px;
	opacity: 0.75;
	color: inherit;
	transition:
		opacity 0.15s ease,
		background 0.15s ease,
		transform 0.15s ease;
}

.resource-cite-modal__close:hover,
.resource-cite-modal__close:focus {
	opacity: 1;
	background: rgba(255, 222, 90, 0.35);
	transform: scale(1.05);
}

.style-dark .resource-cite-modal__close:hover,
.style-dark .resource-cite-modal__close:focus {
	background: rgba(255, 222, 90, 0.22);
}

.resource-cite-modal__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 0.75rem;
}

.resource-cite-modal__tab {
	padding: 0.4rem 0.75rem;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	font-size: 0.85rem;
	cursor: pointer;
	font-family: inherit;
	color: inherit;
	opacity: 0.85;
	transition:
		background 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease,
		opacity 0.15s ease;
}

.resource-cite-modal__tab:hover:not(.is-active) {
	opacity: 1;
	background: rgba(255, 222, 90, 0.42);
	border-color: rgba(20, 20, 20, 0.55);
}

.resource-cite-modal__tab.is-active {
	opacity: 1;
	background: #ffde5a;
	border-color: #141414;
	color: #141414;
	font-weight: 600;
}

.resource-cite-modal__tab.is-active:hover {
	background: #f5d54d;
	border-color: #141414;
}

.resource-cite-modal__tab:focus-visible {
	outline: 2px solid #141414;
	outline-offset: 2px;
}

.resource-cite-modal__panel[hidden] {
	display: none !important;
}

.resource-cite-modal__text {
	margin: 0 0 0.75rem;
	padding: 0.85rem;
	background: rgba(0, 0, 0, 0.045);
	border-radius: 4px;
	font-size: 0.85rem;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
	max-height: 14rem;
	overflow: auto;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.resource-cite-modal__copy {
	font-size: 0.9rem;
	padding: 0.45rem 0.9rem;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
	font-family: inherit;
	color: inherit;
	transition:
		background 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		transform 0.15s ease;
}

.resource-cite-modal__copy:hover:not(.is-copied):not(.is-copy-error),
.resource-cite-modal__copy:focus-visible:not(.is-copied):not(.is-copy-error) {
	background: rgba(255, 222, 90, 0.45);
	border-color: #141414;
	color: #141414;
}

.resource-cite-modal__copy.is-copied:hover {
	background: #f5d54d;
	transform: scale(1.02);
}

.resource-cite-modal__copy.is-copied {
	background: #ffde5a;
	border-color: #141414;
	color: #141414;
	font-weight: 600;
	transform: scale(1.02);
}

.resource-cite-modal__copy.is-copy-error {
	background: rgba(200, 40, 40, 0.12);
	border-color: #b00020;
	color: #8a1020;
	font-weight: 600;
}

.style-dark .resource-cite-modal__copy.is-copied {
	background: #ffde5a;
	border-color: #141414;
	color: #141414;
}

.style-dark .resource-cite-modal__copy.is-copy-error {
	background: rgba(255, 120, 120, 0.15);
	border-color: #ff8a8a;
	color: #ffb4b4;
}

.style-dark .resource-cite-modal__copy.is-copied:hover {
	background: #f5d54d;
}

.resource-cite-modal__export {
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	padding-top: 1rem;
	margin-top: 0.5rem;
}

.resource-cite-modal__export-title {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	font-weight: 600;
}

.resource-cite-modal__export-buttons {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.resource-cite-modal__download {
	width: 100%;
	text-align: left;
	padding: 0.55rem 0.75rem;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.9rem;
	color: inherit;
	transition:
		background 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease,
		opacity 0.15s ease;
}

.resource-cite-modal__download:hover {
	opacity: 1;
	background: rgba(255, 222, 90, 0.4);
	border-color: rgba(20, 20, 20, 0.55);
}

.resource-cite-modal__download:focus:not(:focus-visible) {
	opacity: 0.9;
}

.resource-cite-modal__download:focus-visible {
	opacity: 1;
	background: #ffde5a;
	border-color: #141414;
	color: #141414;
}

.style-dark .resource-cite-modal__tab.is-active {
	background: #ffde5a;
	border-color: #141414;
	color: #141414;
}

.style-dark .resource-cite-modal__tab:hover:not(.is-active) {
	background: rgba(255, 222, 90, 0.28);
	border-color: rgba(255, 222, 90, 0.75);
}

.style-dark .resource-cite-modal__tab.is-active:hover {
	background: #f5d54d;
}

.style-dark .resource-cite-modal__tab:focus-visible {
	outline-color: #ffde5a;
}

.style-dark .resource-cite-modal__download:hover {
	background: rgba(255, 222, 90, 0.3);
	border-color: rgba(255, 222, 90, 0.8);
}

.style-dark .resource-cite-modal__copy:hover:not(.is-copied):not(.is-copy-error),
.style-dark .resource-cite-modal__copy:focus-visible:not(.is-copied):not(.is-copy-error) {
	background: rgba(255, 222, 90, 0.32);
	border-color: rgba(255, 222, 90, 0.85);
	color: inherit;
}

.style-dark .resource-cite-modal__text {
	background: rgba(255, 255, 255, 0.07);
}

.style-dark .resource-cite-modal__export {
	border-top-color: rgba(255, 255, 255, 0.12);
}

.resource-cite-modal__disclaimer {
	margin: 1rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	font-size: 0.8rem;
	line-height: 1.45;
	opacity: 0.88;
}

.resource-cite-modal__disclaimer strong {
	font-weight: 600;
	opacity: 1;
}

.style-dark .resource-cite-modal__disclaimer {
	border-top-color: rgba(255, 255, 255, 0.1);
}

/* Extra breathing room above the footer on resources pages */
body.is-resources-view .page-body,
body.is-resources-view .page-body .post-wrapper,
body.is-resources-view .page-body .post-body {
	padding-bottom: 8rem !important;
	min-height: 100vh;
}

/* Prevent vertical clipping of resources content; clip horizontal bleed from .row-container 100vw only */
body.is-resources-view .page-body .post-wrapper,
body.is-resources-view .page-body .post-body {
	height: auto !important;
	max-height: none !important;
	overflow-x: hidden;
	overflow-y: visible !important;
}

/* Ensure footer always sits below content */
body.is-resources-view footer#colophon {
	clear: both;
	margin-top: 2rem;
}

/* Uncode index content block: constrain nested rows to prevent sidebar overlap */
body.is-resources-view .resources-main-col .row-inner,
body.is-resources-view .resources-main-col .row {
	max-width: 100%;
}
