/**
 * Resource Bundles catalogue (page-resource-bundles.php).
 *
 * Only what this page adds: the hero and two small sidebar details. The
 * filters, toolbar, grid, cards, pagination and empty state use the All
 * Documents styles (catalog.css) unchanged.
 *
 * Hero blending: the illustration is an opaque photo, placed on the right
 * and MASKED (transparent at its left edge, opaque from ~45%) so it fades
 * into the navy hero with no visible box. On phones it sits below the
 * text and fades in from the top instead.
 */

.qehs-bundles-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 260px;
	background: linear-gradient(100deg, #021E40 0%, #0A2F5C 55%, #0B3A72 100%);
	color: #FFFFFF;
	overflow: hidden;
}

.qehs-bundles-hero__media {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 60%;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.4) 22%, #000 48%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.4) 22%, #000 48%);
}

.qehs-bundles-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% 58%;
}

.qehs-bundles-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(2, 30, 64, 0.5) 0%, rgba(2, 30, 64, 0.08) 55%, rgba(2, 30, 64, 0) 100%);
}

.qehs-bundles-hero__inner {
	position: relative;
	z-index: 1;
	padding-block: var(--qehs-space-lg) var(--qehs-space-xl);
}

.qehs-bundles-hero__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--qehs-space-sm);
	margin-bottom: var(--qehs-space-md);
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.85);
}

.qehs-bundles-hero__breadcrumb a {
	display: inline-block;
	margin-block: -8px;
	padding-block: 8px;
	color: var(--qehs-secondary);
	font-weight: 600;
	text-decoration: none;
}

.qehs-bundles-hero__breadcrumb a:hover,
.qehs-bundles-hero__breadcrumb a:focus-visible {
	text-decoration: underline;
}

.qehs-bundles-hero__breadcrumb a:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 3px;
	border-radius: 2px;
}

.qehs-bundles-hero__title {
	margin: 0 0 var(--qehs-space-sm);
	font-size: clamp(2rem, 3vw, 2.6rem);
	font-weight: 800;
	line-height: 1.15;
	color: #FFFFFF;
}

.qehs-bundles-hero__subtitle {
	margin: 0 0 var(--qehs-space-md);
	font-size: clamp(1.1rem, 1.5vw, 1.35rem);
	font-weight: 700;
	color: #FFFFFF;
}

.qehs-bundles-hero__text {
	margin: 0;
	max-width: min(560px, 42vw);
	font-size: 1.02rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
}

/* ISO Standard filter as a fieldset (proper grouping for assistive tech)
   without changing the All Documents filter-group look. */
.qehs-bundles-filter-group {
	margin-inline: 0;
	padding-inline: 0;
	border-inline: 0;
	border-bottom: 0;
	min-width: 0;
}

.qehs-bundles-filter-group legend {
	padding: 0;
	width: 100%;
}

.qehs-bundles-filter-more summary {
	margin-top: 6px;
	color: var(--qehs-secondary);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.qehs-bundles-filter-more summary::-webkit-details-marker {
	display: none;
}

.qehs-bundles-filter-more[open] summary {
	display: none;
}

.qehs-bundles-filter-more summary:focus-visible {
	outline: 2px solid var(--qehs-secondary);
	outline-offset: 2px;
}

@media (max-width: 1100px) {
	.qehs-bundles-hero__media {
		width: 54%;
	}
}

@media (max-width: 768px) {
	.qehs-bundles-hero {
		min-height: 0;
	}

	.qehs-bundles-hero__inner {
		order: 1;
		padding-bottom: var(--qehs-space-md);
	}

	.qehs-bundles-hero__text {
		max-width: none;
	}

	.qehs-bundles-hero__media {
		position: relative;
		order: 2;
		width: 100%;
		height: clamp(150px, 44vw, 290px);
		-webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 30%, #000 62%);
		mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 30%, #000 62%);
	}

	.qehs-bundles-hero__media img {
		object-position: 72% 60%;
	}

	.qehs-bundles-hero__media::after {
		background: linear-gradient(180deg, rgba(2, 30, 64, 0.45) 0%, rgba(2, 30, 64, 0.05) 60%);
	}
}

/* Toolbar search: let the input shrink so the Search button always fits on
   very narrow phones (at 320px it was pushed out and clipped). Scoped to
   this page; All Documents uses the same shared rule unchanged. */
.qehs-bundles-page .qehs-catalog-toolbar__search input {
	min-width: 0;
}

/* Pagination in one row, as in the design: WordPress wraps the page links
   in .nav-links, which the shared rule doesn't lay out. Scoped to this
   page; All Documents is unchanged. */
.qehs-bundles-page .qehs-catalog-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--qehs-space-xs);
}

/* Bundle cards on this page: no grey panel behind the cover, and the cover
   at 137 × 155px (object-fit: contain keeps the box art undistorted).
   Scoped to the Resource Bundles page — All Documents cards unchanged. */
.qehs-bundles-page .qehs-document-card__media {
	background-color: transparent;
}

.qehs-bundles-page .qehs-document-card__media img {
	width: 137px;
	height: 155px;
	max-width: 100%;
	object-fit: contain;
}
