/*
 * SkillELECTRIC light accordions (eplatforms, 15 Sep 2026).
 * Native <details> sections in place of WPBakery's accordion, and competitor card grids where every
 * card in a row is the same height: photos share one square shape and the grey caption boxes line up.
 * The cards keep the theme's own classes (competitors_mg, competitors_mg_heading2...).
 */

/* ---------- Sections ---------- */

.cl-section {
	margin: 0;
	scroll-margin-top: 110px; /* clear the sticky header when opened from a link */
}

.cl-summary {
	position: relative;
	display: block;
	margin: 0 0 40px;
	padding: 11px 50px 11px 18px;
	background: #231414;
	font: 700 18px/26px Montserrat, "Helvetica Neue", Arial, sans-serif;
	color: #fff;
	list-style: none;
	cursor: pointer;
}

.cl-summary::-webkit-details-marker {
	display: none;
}

/* Triangle: pointing right when closed, down when open */
.cl-summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 20px;
	border-style: solid;
	border-width: 7px 0 7px 11px;
	border-color: transparent transparent transparent #fff;
	transform: translateY(-50%);
}

.cl-section[open] > .cl-summary::after {
	border-width: 11px 7px 0;
	border-color: #fff transparent transparent;
}

.cl-summary:focus-visible {
	outline: 3px solid #bf000d;
	outline-offset: 2px;
}

/* Outlined heading style used by some accordions (for example Privacy: el_class resource_panel_box). */
.cl-accordion.resource_panel_box .cl-summary {
	padding: 11px 50px 11px 18px;
	border: 1px solid #51513d;
	background: #fff;
	font-size: 20px;
	line-height: 26px;
	color: #51513d;
}

.cl-accordion.resource_panel_box .cl-summary::after {
	border-color: transparent transparent transparent #51513d;
}

.cl-accordion.resource_panel_box .cl-section[open] > .cl-summary::after {
	border-color: #51513d transparent transparent;
}

.cl-body {
	padding: 0 0 35px;
}

/* List spacing as inside WPBakery's accordion panels. */
.cl-body ul {
	margin: 18px 0 0;
}

.cl-body ul li {
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 27px;
}

.cl-body::after {
	content: "";
	display: table;
	clear: both;
}

/* ---------- Competitor cards: equal rows ---------- */

.cl-accordion .categoryitems {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: stretch;
	column-gap: 3.1%;
	row-gap: 40px;
	margin: 0 0 40px; /* the same gap between consecutive blocks of cards as between rows */
}

/* The theme's clearfix pseudo-elements and stray paragraphs would become grid cells. */
.cl-accordion .categoryitems::before,
.cl-accordion .categoryitems::after,
.cl-accordion .categoryitems > br,
.cl-accordion .categoryitems > p:empty {
	display: none;
}

.cl-accordion .categoryitems > .competitors_mg,
.cl-accordion .categoryitems > .competitors_mg2 {
	display: flex;
	flex-direction: column;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

.cl-accordion .categoryitems > .competitors_mg > p,
.cl-accordion .categoryitems > .competitors_mg2 > p {
	margin: 0;
}

.cl-accordion .categoryitems img {
	display: block;
	float: none !important;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Grey caption boxes fill the rest of the card, so their bottoms line up across the row. */
.cl-accordion .competitors_mg_heading,
.cl-accordion .competitors_mg_heading2 {
	display: block !important;
	flex: 1 1 auto;
	height: auto !important;
	min-height: 100px;
	margin: 0 !important;
	padding-bottom: 15px;
}

@media (max-width: 767px) {
	.cl-summary {
		padding: 11px 44px 15px 18px;
		font-size: 13px;
	}

	.cl-accordion .categoryitems {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 40px;
	}
}
