/* =============================================================
   PECB Resources — Shared design tokens + UI components
   Loaded as a dependency of every content-type stylesheet.

   Every selector is scoped under .pecb-res so theme / page-builder
   rules (e.g. Elementor kit link colours) cannot override it.

   Re-brand from the theme without touching the plugin:
     .pecb-res { --pecb-accent: #c8102e; --pecb-radius: 8px; }
   ============================================================= */

.pecb-res {
	--pecb-text: #212427;
	--pecb-text-soft: #4b5563;
	--pecb-muted: #6b7280;
	--pecb-border: #e5e7eb;
	--pecb-border-strong: #d1d5db;
	--pecb-surface: #ffffff;
	--pecb-surface-alt: #f4f5f7;
	--pecb-accent: #a6192e;
	--pecb-accent-hover: #86131f;
	--pecb-accent-soft: #fbeef0;
	--pecb-dark: #212427;
	--pecb-dark-hover: #000000;
	--pecb-radius: 12px;
	--pecb-radius-sm: 8px;
	--pecb-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
	--pecb-shadow-hover: 0 14px 32px -10px rgba(16, 24, 40, 0.2);
	--pecb-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	/* The font files come from the theme; the plugin only names the family. */
	--pecb-font: "Parabolica", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	color: var(--pecb-text);
	line-height: 1.5;
	box-sizing: border-box;
}

.pecb-res *,
.pecb-res *::before,
.pecb-res *::after {
	box-sizing: inherit;
}

/* !important so theme / Elementor font rules on p, span, time … can't leak in;
   change the family through --pecb-font instead. */
.pecb-res,
.pecb-res * {
	font-family: var(--pecb-font) !important;
}

.pecb-res svg {
	flex-shrink: 0;
	display: block;
}

.pecb-res a:focus-visible,
.pecb-res button:focus-visible {
	outline: 2px solid var(--pecb-accent);
	outline-offset: 2px;
}

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

/* ---- Listing + grid ---- */
.pecb-res.pecb-listing {
	margin: 0 0 40px;
	scroll-margin-top: 120px; /* clears sticky headers when paginating via #anchor */
}

.pecb-res .pecb-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 24px;
	margin: 0;
}

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

@media (max-width: 600px) {
	.pecb-res .pecb-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
}

/* ---- Card (whole card is clickable via the title link's ::after) ---- */
.pecb-res .pecb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	background: var(--pecb-surface);
	border: 1px solid var(--pecb-border);
	border-radius: var(--pecb-radius);
	box-shadow: var(--pecb-shadow);
	overflow: hidden;
	transition: transform 0.25s var(--pecb-ease), box-shadow 0.25s var(--pecb-ease), border-color 0.25s ease;
}

.pecb-res .pecb-card:hover {
	transform: translateY(-3px);
	border-color: var(--pecb-border-strong);
	box-shadow: var(--pecb-shadow-hover);
}

.pecb-res .pecb-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	margin: 0;
	padding: 0;
	background: var(--pecb-surface-alt);
	overflow: hidden;
}

/* Pinned to the frame so theme img margins/heights can't push it down;
   cropping keeps the top of the image. */
.pecb-res .pecb-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: center top;
	display: block;
	transform-origin: center top;
	transition: transform 0.5s var(--pecb-ease);
}

.pecb-res .pecb-card:hover .pecb-card__media img {
	transform: scale(1.04);
}

/* Product shots (toolkit boxes) should never be cropped. */
.pecb-res .pecb-card__media--contain img {
	object-fit: contain;
	object-position: center;
	transform-origin: center;
	padding: 16px 24px;
}

.pecb-res .pecb-card__chip {
	position: absolute;
	left: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0.78);
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.pecb-res .pecb-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	padding: 20px 22px 18px;
}

.pecb-res .pecb-card__eyebrow {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pecb-accent);
}

.pecb-res .pecb-card__title {
	display: block;
	float: none;
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
	text-align: left;
	text-indent: 0;
	color: var(--pecb-text);
	display: contents;
}

/* Themes decorate headings / links with pseudo-elements (e.g. an inline
   accent bar before every h3), which indents the first line of the title
   and pushes it down. The link's ::after is the card's click area, so
   only ::before is cleared on it. */
.pecb-res .pecb-card__eyebrow::before,
.pecb-res .pecb-card__eyebrow::after,
.pecb-res .pecb-card__title::before,
.pecb-res .pecb-card__title::after,
.pecb-res .pecb-card__link::before,
.pecb-res .pecb-single__title::before,
.pecb-res .pecb-magazine__title::before {
	content: none !important;
	display: none !important;
}

.pecb-res .pecb-card__link {
	display: inline;
	padding: 0;
	color: inherit;
	text-decoration: none;
	text-indent: 0;
	box-shadow: none;
}

.pecb-res .pecb-card__link:hover {
	color: inherit;
}

.pecb-res .pecb-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--pecb-radius);
}

.pecb-res .pecb-card__link:focus-visible {
	outline: none;
}

.pecb-res .pecb-card__link:focus-visible::after {
	box-shadow: inset 0 0 0 3px var(--pecb-accent);
}

.pecb-res .pecb-card__excerpt {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--pecb-text-soft);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pecb-res .pecb-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--pecb-border);
}

.pecb-res .pecb-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	color: var(--pecb-text);
	transition: color 0.2s ease;
}

.pecb-res .pecb-card__cta svg {
	transition: transform 0.25s var(--pecb-ease);
}

.pecb-res .pecb-card:hover .pecb-card__cta {
	color: var(--pecb-accent);
}

.pecb-res .pecb-card:hover .pecb-card__cta svg {
	transform: translateX(3px);
}

/* ---- Meta items (date, duration, authors) ---- */
.pecb-res .pecb-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--pecb-muted);
}

.pecb-res .pecb-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--pecb-accent-soft);
	color: var(--pecb-accent);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.5;
}

/* ---- Single view ---- */
.pecb-single-page-wrap {
	padding: 140px 20px 72px;
}

.pecb-res.pecb-single {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
}

.pecb-res .pecb-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 20px;
	font-size: 14px;
	font-weight: 600;
	color: var(--pecb-muted);
	text-decoration: none;
	transition: color 0.15s ease;
}

.pecb-res .pecb-back-link svg {
	transition: transform 0.2s var(--pecb-ease);
}

.pecb-res .pecb-back-link:hover {
	color: var(--pecb-text);
}

.pecb-res .pecb-back-link:hover svg {
	transform: translateX(-3px);
}

.pecb-res .pecb-single__header {
	margin: 0 0 28px;
}

.pecb-res .pecb-single__title {
	margin: 0 0 16px;
	padding: 0;
	font-size: clamp(28px, 2vw + 18px, 40px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--pecb-text);
}

.pecb-res .pecb-single-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
}

.pecb-res .pecb-single__media {
	position: relative;
	aspect-ratio: 16 / 9;
	margin: 0 0 36px;
	border-radius: 16px;
	background: var(--pecb-surface-alt);
	overflow: hidden;
	max-width: 720px;
}

.pecb-res .pecb-single__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.pecb-res .pecb-single__media--contain img {
	object-fit: contain;
	object-position: center;
	padding: clamp(20px, 5vw, 48px);
}

.pecb-res .pecb-section > .pecb-single__media {
	margin-bottom: 0;
}

/* ---- Single view with full-width hero (whitepapers, webinars) ----
   The hero background spans the viewport; its text and everything below
   stay in a 1200px column. Override the gap under a fixed site header with
   .pecb-single-page-wrap--hero { --pecb-header-offset: 96px; } */
.pecb-single-page-wrap--hero {
	padding: var(--pecb-header-offset, 80px) 20px 72px;
	overflow-x: clip; /* 100vw includes the scrollbar */
}

.pecb-res.pecb-single--hero {
	max-width: none;
}

.pecb-res .pecb-single__body {
	max-width: 1200px;
	margin: 0 auto;
}

.pecb-res .pecb-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	width: 100vw;
	min-height: 360px;
	margin: 0 calc(50% - 50vw);
	padding: 96px 20px 56px;
	border-radius: 0 0 16px 16px;
	background: var(--pecb-dark);
	color: #ffffff;
	overflow: hidden;
}

.pecb-res .pecb-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: center;
}

/* Darkens the photo so the white title stays readable on any image. */
.pecb-res .pecb-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(17, 17, 17, 0.35) 0%, rgba(17, 17, 17, 0.7) 100%);
}

.pecb-res .pecb-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

.pecb-res .pecb-hero__type {
	display: inline-block;
	margin: 0 0 14px;
	padding: 4px 14px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.28);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	transition: background-color 0.15s ease;
}

.pecb-res .pecb-hero__type:hover {
	background: rgba(255, 255, 255, 0.42);
	color: #ffffff;
}

.pecb-res .pecb-hero .pecb-single__title {
	max-width: 1000px;
	margin: 0;
	font-size: clamp(30px, 2.4vw + 16px, 52px);
	line-height: 1.1;
	color: #ffffff;
}

.pecb-res .pecb-single__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	margin: 0 0 40px;
	padding: 28px 0;
}

/* ---- Share links ---- */
.pecb-res .pecb-share {
	display: flex;
	align-items: center;
	gap: 28px;
}

.pecb-res .pecb-share__label {
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pecb-muted);
}

.pecb-res .pecb-share__list {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pecb-res .pecb-share__list li {
	margin: 0;
	padding: 0;
}

.pecb-res .pecb-share__link {
	display: flex;
	color: var(--pecb-dark-hover);
	text-decoration: none;
	transition: color 0.15s ease, transform 0.15s ease;
}

.pecb-res .pecb-share__link:hover {
	color: var(--pecb-accent);
	transform: translateY(-2px);
}

/* ---- Sections ---- */
.pecb-res .pecb-section {
	margin: 44px 0 0;
}

.pecb-res .pecb-section__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	padding: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--pecb-text);
}

.pecb-res .pecb-section__count {
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--pecb-surface-alt);
	color: var(--pecb-muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}

/* ---- Rich text (API-provided HTML) ---- */
.pecb-res .pecb-prose {
	font-size: 16px;
	line-height: 1.75;
	color: var(--pecb-text-soft);
	overflow-wrap: break-word;
}

.pecb-res .pecb-prose > :first-child {
	margin-top: 0;
}

.pecb-res .pecb-prose > :last-child {
	margin-bottom: 0;
}

.pecb-res .pecb-prose p,
.pecb-res .pecb-prose div {
	margin: 0 0 1.1em;
}

.pecb-res .pecb-prose h2,
.pecb-res .pecb-prose h3,
.pecb-res .pecb-prose h4 {
	margin: 2em 0 0.6em;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--pecb-text);
}

.pecb-res .pecb-prose h2 { font-size: 26px; }
.pecb-res .pecb-prose h3 { font-size: 21px; }
.pecb-res .pecb-prose h4 { font-size: 18px; }

.pecb-res .pecb-prose ul,
.pecb-res .pecb-prose ol {
	margin: 0 0 1.1em;
	padding-left: 1.4em;
}

.pecb-res .pecb-prose li {
	margin: 0.35em 0;
}

.pecb-res .pecb-prose li::marker {
	color: var(--pecb-accent);
}

.pecb-res .pecb-prose strong,
.pecb-res .pecb-prose b {
	color: var(--pecb-text);
	font-weight: 600;
}

.pecb-res .pecb-prose a {
	color: var(--pecb-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.pecb-res .pecb-prose a:hover {
	color: var(--pecb-accent-hover);
}

.pecb-res .pecb-prose blockquote {
	margin: 1.5em 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--pecb-accent);
	color: var(--pecb-text);
	font-style: normal;
}

.pecb-res .pecb-prose img {
	max-width: 100%;
	height: auto;
	border-radius: var(--pecb-radius-sm);
}

.pecb-res .pecb-prose .pecb-table-scroll {
	margin: 1.5em 0;
	overflow-x: auto;
}

.pecb-res .pecb-prose table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 14.5px;
}

.pecb-res .pecb-prose th,
.pecb-res .pecb-prose td {
	padding: 10px 12px;
	border: 1px solid var(--pecb-border);
	text-align: left;
	vertical-align: top;
}

.pecb-res .pecb-prose th {
	background: var(--pecb-surface-alt);
	color: var(--pecb-text);
	font-weight: 600;
}

.pecb-res .pecb-prose hr {
	margin: 2em 0;
	border: 0;
	border-top: 1px solid var(--pecb-border);
}

.pecb-res .pecb-prose sup {
	line-height: 0;
}

/* ---- Related items (single view) ---- */
.pecb-res .pecb-related {
	margin-top: 56px;
	padding-top: 36px;
	border-top: 1px solid var(--pecb-border);
}

.pecb-res .pecb-related__grid {
	gap: 24px 20px;
}

.pecb-res .pecb-related .pecb-card__title {
	font-size: 16.5px;
}

/* ---- Image skeletons ----
   assets/js/pecb-common.js sets .is-loading on a .pecb-skeleton frame while
   its image downloads. The shimmer is an overlay rather than a background so
   type-specific frame backgrounds (toolkit stage, video black) stay intact. */
.pecb-res .pecb-skeleton {
	position: relative;
}

.pecb-res .pecb-skeleton.is-loading::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(100deg, #eceef1 30%, #f8f9fa 50%, #eceef1 70%);
	background-size: 300% 100%;
	animation: pecb-shimmer 1.4s ease-in-out infinite;
}

.pecb-res .pecb-skeleton.is-loading img {
	opacity: 0;
}

.pecb-res .pecb-skeleton.is-loaded img {
	animation: pecb-fade-in 0.35s ease both;
}

.pecb-res .pecb-skeleton.is-error img {
	visibility: hidden;
}

@keyframes pecb-shimmer {
	from { background-position: 100% 0; }
	to   { background-position: 0 0; }
}

@keyframes pecb-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* ---- Buttons ---- */
.pecb-res .pecb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border: 0;
	border-radius: var(--pecb-radius-sm);
	background: var(--pecb-dark);
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.pecb-res .pecb-btn:hover {
	background: var(--pecb-dark-hover);
	color: #ffffff;
}

.pecb-res .pecb-btn--primary {
	background: var(--pecb-accent);
}

.pecb-res .pecb-btn--primary:hover {
	background: var(--pecb-accent-hover);
}

/* ---- Downloadable resources ---- */
.pecb-res .pecb-resources-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.pecb-res .pecb-resource-row {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 14px 16px 14px 14px;
	background: var(--pecb-surface);
	border: 1px solid var(--pecb-border);
	border-radius: var(--pecb-radius);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pecb-res .pecb-resource-row:hover {
	border-color: var(--pecb-border-strong);
	box-shadow: var(--pecb-shadow);
}

.pecb-res .pecb-resource-row.is-primary {
	background: var(--pecb-accent-soft);
	border-color: rgba(166, 25, 46, 0.22);
}

.pecb-res .pecb-filetype {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--pecb-surface-alt);
	color: var(--pecb-text-soft);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
}

.pecb-res .pecb-filetype--pdf     { background: #fdecee; color: #b42318; }
.pecb-res .pecb-filetype--doc     { background: #eaf1fe; color: #1d4ed8; }
.pecb-res .pecb-filetype--sheet   { background: #e7f6ed; color: #15803d; }
.pecb-res .pecb-filetype--slides  { background: #fdf0e6; color: #c2410c; }
.pecb-res .pecb-filetype--archive { background: #ffffff; color: var(--pecb-accent); }

.pecb-res .pecb-resource-row__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
}

.pecb-res .pecb-resource-row__name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--pecb-text);
	overflow-wrap: anywhere;
}

.pecb-res .pecb-resource-row__meta {
	font-size: 13px;
	color: var(--pecb-muted);
}

.pecb-res .pecb-resource-row__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	padding: 9px 16px;
	border-radius: var(--pecb-radius-sm);
	background: var(--pecb-dark);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.pecb-res .pecb-resource-row__btn:hover {
	background: var(--pecb-dark-hover);
	color: #ffffff;
}

.pecb-res .is-primary .pecb-resource-row__btn {
	background: var(--pecb-accent);
}

.pecb-res .is-primary .pecb-resource-row__btn:hover {
	background: var(--pecb-accent-hover);
}

/* ---- Pagination ---- */
.pecb-res .pecb-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 36px 0 0;
}

.pecb-res .pecb-pagination__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--pecb-border);
	border-radius: var(--pecb-radius-sm);
	background: var(--pecb-surface);
	color: var(--pecb-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pecb-res a.pecb-pagination__link:hover {
	border-color: var(--pecb-text);
	color: var(--pecb-text);
}

.pecb-res .pecb-pagination__link.is-current {
	background: var(--pecb-dark);
	border-color: var(--pecb-dark);
	color: #ffffff;
}

.pecb-res .pecb-pagination__link.is-disabled {
	opacity: 0.4;
}

.pecb-res .pecb-pagination__ellipsis {
	min-width: 24px;
	color: var(--pecb-muted);
	text-align: center;
}

/* ---- Empty state ---- */
.pecb-res.pecb-empty {
	padding: 48px 24px;
	border: 1px dashed var(--pecb-border-strong);
	border-radius: var(--pecb-radius);
	background: var(--pecb-surface);
	color: var(--pecb-muted);
	text-align: center;
}

.pecb-res.pecb-empty p {
	margin: 0;
	font-size: 15px;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
	.pecb-single-page-wrap {
		padding: 24px 16px 48px;
	}

	.pecb-single-page-wrap--hero {
		padding: var(--pecb-header-offset, 0px) 16px 48px;
	}

	.pecb-res .pecb-hero {
		min-height: 260px;
		padding: 72px 16px 32px;
		border-radius: 0 0 var(--pecb-radius) var(--pecb-radius);
	}

	.pecb-res .pecb-single__bar {
		margin-bottom: 28px;
		padding: 20px 0;
	}

	.pecb-res .pecb-share {
		gap: 20px;
	}

	.pecb-res .pecb-single__media {
		border-radius: var(--pecb-radius);
		margin-bottom: 28px;
	}

	.pecb-res .pecb-resource-row {
		flex-wrap: wrap;
	}

	.pecb-res .pecb-resource-row__btn {
		width: 100%;
		justify-content: center;
	}

	.pecb-res .pecb-pagination__label {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pecb-res *,
	.pecb-res *::before,
	.pecb-res *::after {
		transition: none !important;
	}

	.pecb-res .pecb-card:hover,
	.pecb-res .pecb-card:hover .pecb-card__media img,
	.pecb-res .pecb-share__link:hover {
		transform: none;
	}

	/* Static grey placeholder, no shimmer or fade. */
	.pecb-res .pecb-skeleton.is-loading::before,
	.pecb-res .pecb-skeleton.is-loaded img {
		animation: none;
	}
}
