/* Procure Taxonomy Layout
   Long-form category/brand copy, rendered below the product grid as a
   collapsed accordion so it does not read as a wall of text. */

.pgtl-category-content {
	--pgtl-rule: var(--theme-border-color, rgba(0, 0, 0, 0.14));
	--pgtl-fg: var(--theme-text-color, #1a1a1a);
	--pgtl-muted: var(--theme-font-color, #4a4a4a);

	max-width: 78ch;
	margin: 3.5rem auto 0;
	padding-top: 2rem;
	border-top: 1px solid var(--pgtl-rule);
	color: var(--pgtl-muted);
	line-height: 1.65;
}

.pgtl-category-content__title {
	margin: 0 0 1.25rem;
	font-size: 1.05rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pgtl-fg);
}

/* --- panels --- */

.pgtl-panel {
	border-bottom: 1px solid var(--pgtl-rule);
}

.pgtl-panel__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 0;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	font-size: 1rem;
	color: var(--pgtl-fg);
}

/* Hide the native disclosure triangle in both engines. */
.pgtl-panel__title::-webkit-details-marker {
	display: none;
}

.pgtl-panel__title::after {
	content: "";
	flex: 0 0 auto;
	width: 0.55em;
	height: 0.55em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-0.15em, -0.15em);
	transition: transform 0.18s ease;
}

.pgtl-panel[open] > .pgtl-panel__title::after {
	transform: rotate(-135deg) translate(-0.15em, -0.15em);
}

.pgtl-panel__title:hover,
.pgtl-panel__title:focus-visible {
	color: var(--theme-link-hover-color, #c8102e);
}

.pgtl-panel__body {
	padding: 0 0 1.25rem;
}

.pgtl-panel__body > :first-child {
	margin-top: 0;
}

.pgtl-panel__body p,
.pgtl-panel__body ul {
	margin: 0 0 1em;
}

.pgtl-panel__body ul {
	padding-left: 1.25em;
}

.pgtl-panel__body li {
	margin-bottom: 0.35em;
}

@media (prefers-reduced-motion: reduce) {
	.pgtl-panel__title::after {
		transition: none;
	}
}

@media (prefers-color-scheme: dark) {
	.pgtl-category-content {
		--pgtl-rule: var(--theme-border-color, rgba(255, 255, 255, 0.18));
		--pgtl-fg: var(--theme-text-color, #ededed);
		--pgtl-muted: var(--theme-font-color, #c2c2c2);
	}
}

/* --- category / brand hero intro ---------------------------------------
   The archive description renders in Blocksy's hero on a light grey band, in
   the theme's muted font colour. Grey on grey failed to read - it was called
   out in design review. Force the intro to full text colour and give it a
   readable measure. Contrast is a legibility requirement, not a preference:
   WCAG AA wants 4.5:1 for body text. */

/* Blocksy sets the hero description colour from its own theme variables at a
   specificity this has to beat, hence the doubled class. #23282d on the light
   grey hero band clears WCAG AA comfortably; the theme default did not. */
.hero-section .page-description.page-description,
.hero-section .page-description.page-description p {
	color: #23282d;
}

.hero-section .page-description {
	max-width: 68ch;
	margin-inline: auto;
}

.hero-section .page-description p {
	font-size: 1.0625rem;
	line-height: 1.6;
	text-wrap: pretty;
}

.hero-section .page-description strong {
	color: inherit;
}

/* Blocksy hides the archive description on small screens via ct-hidden-sm, so
   mobile visitors saw no category intro at all. The intro is one short
   paragraph now that the long copy is in the accordion below, so it is worth
   showing. */
@media (max-width: 689px) {
	.hero-section .page-description.ct-hidden-sm {
		display: block;
	}

	.hero-section .page-description p {
		font-size: 1rem;
	}
}
