/* [satm_resources] — filterable resources list.
   Override the accent from the child theme with:
   .satm-rr { --satm-accent: #yourcolor; } */

/* Palette derived from the OceanWP customizer, adjusted for WCAG AA:
   the brand teal #32bcc1 is only 2.3:1 against white, so text-bearing
   elements use the darkened #1a7f83 (4.8:1). Bright teal and gold stay
   decorative only. */
.satm-rr {
	--satm-accent: #1a7f83;
	--satm-accent-bright: #32bcc1;
	--satm-gold: #d9b310;
	--satm-dark: #1d2731;
	--satm-border: #e2e5ea;
	--satm-muted: #6b7280;
	--satm-bg: #f7f8fa;
	--satm-radius: 4px;
}

/* ---------- Filter bar ---------- */

/* Single-row toolbar: labels are screen-reader-only, controls speak for
   themselves (placeholder, "All authors", "Sort: …", pills). */
.satm-rr__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	padding: 12px 14px;
	margin-bottom: 14px;
	background: var(--satm-bg);
	border: 1px solid var(--satm-border);
	border-radius: var(--satm-radius);
}

.satm-rr__filter {
	display: flex;
	align-items: center;
}

.satm-rr__filter--search {
	flex: 1 1 200px;
	min-width: 160px;
}

.satm-rr__filter--author {
	flex: 0 1 190px;
}

.satm-rr__filter--year {
	flex: 0 1 120px;
}

.satm-rr__filter--sort {
	flex: 0 1 175px;
}

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

/* Doubled-up .satm-rr selectors + explicit height/appearance:
   OceanWP styles input/select/button globally (e.g. select { height: 2.25em })
   and clips the dropdowns otherwise. */
.satm-rr .satm-rr__input,
.satm-rr .satm-rr__select {
	box-sizing: border-box;
	width: 100%;
	height: 40px;
	min-height: 40px;
	margin: 0;
	padding: 9px 12px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	color: #333;
	background-color: #fff;
	border: 1px solid var(--satm-border);
	border-radius: var(--satm-radius);
	box-shadow: none;
}

.satm-rr .satm-rr__select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 34px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b7280' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px 8px;
	cursor: pointer;
}

.satm-rr .satm-rr__input:focus,
.satm-rr .satm-rr__select:focus {
	outline: 2px solid var(--satm-accent);
	outline-offset: 1px;
	border-color: var(--satm-accent);
}

.satm-rr__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.satm-rr .satm-rr__pill {
	margin: 0;
	padding: 6px 14px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	color: var(--satm-accent);
	background: #fff;
	border: 1px solid var(--satm-accent);
	border-radius: var(--satm-radius);
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.satm-rr .satm-rr__pill:hover,
.satm-rr .satm-rr__pill:focus {
	color: var(--satm-accent);
	background: rgba(50, 188, 193, 0.14);
}

.satm-rr .satm-rr__pill.is-active,
.satm-rr .satm-rr__pill.is-active:hover,
.satm-rr .satm-rr__pill.is-active:focus {
	color: #fff;
	background: var(--satm-accent);
}

.satm-rr .satm-rr__reset {
	margin-left: auto;
	padding: 8px 4px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	color: var(--satm-muted);
	background: none;
	border: none;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	text-decoration: underline;
}

.satm-rr .satm-rr__reset:hover,
.satm-rr .satm-rr__reset:focus {
	color: var(--satm-accent);
	background: none;
}

/* ---------- Count / empty ---------- */

.satm-rr__count {
	margin: 0 2px 18px;
	font-size: 13px;
	color: var(--satm-muted);
}

.satm-rr__empty {
	padding: 40px 20px;
	text-align: center;
	color: var(--satm-muted);
	background: var(--satm-bg);
	border: 1px dashed var(--satm-border);
	border-radius: var(--satm-radius);
}

/* ---------- Cards ---------- */

.satm-rr__list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.satm-rr__card {
	padding: 22px 24px;
	background: #fff;
	border: 1px solid var(--satm-border);
	/* border-left: 4px solid var(--satm-accent); */
	border-radius: var(--satm-radius);
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
	transition: box-shadow 0.15s ease;
}

.satm-rr__card:hover {
	box-shadow: 0 4px 12px rgba(16, 24, 40, 0.1);
}

.satm-rr__card.is-hidden {
	display: none;
}

.satm-rr__card-head {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 12px;
}

.satm-rr__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	align-items: baseline;
}

.satm-rr__author {
	font-weight: 700;
	color: var(--satm-dark);
}

.satm-rr__year {
	font-size: 14px;
	font-weight: 600;
	color: var(--satm-muted);
}

.satm-rr__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.satm-rr__badge {
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	border-radius: var(--satm-radius);
	background: var(--satm-bg);
	border: 1px solid var(--satm-border);
	color: var(--satm-muted);
}

.satm-rr__badge--research {
	background: #eef4fb;
	border-color: #c9dcf2;
	color: #1d4e89;
}

.satm-rr__badge--report {
	background: #fdf1ec;
	border-color: #f3d0c2;
	color: #9a3b1c;
}

/* ---------- Card content + read more ---------- */

.satm-rr__content {
	overflow: hidden;
}

.satm-rr__content.is-clamped {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.satm-rr__content > :last-child {
	margin-bottom: 0;
}

.satm-rr .satm-rr__more {
	margin: 10px 0 0;
	padding: 0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	color: var(--satm-accent);
	background: none;
	border: none;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	text-decoration: underline;
}

.satm-rr .satm-rr__more:hover,
.satm-rr .satm-rr__more:focus {
	color: var(--satm-accent);
	background: none;
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
	.satm-rr__filters {
		padding: 14px;
	}

	.satm-rr__filter {
		flex: 1 1 100%;
	}

	.satm-rr__card {
		padding: 16px;
	}
}
