/* ==========================================================================
   Mars Campers – Specification accordion (.spacc)
   Works on the theme's dark (#252525) and light sections: colours are
   derived from currentColor so it inherits the section's text colour.
   Red accent #ED1C24 · Staatliches headings · Work Sans body
   ========================================================================== */

.spacc {
	--spacc-red:     #ed1c24;
	--spacc-line:    rgba(255, 255, 255, 0.18);
	--spacc-head-bg: rgba(255, 255, 255, 0.04);
	--spacc-open-bg: rgba(255, 255, 255, 0.06);
	--spacc-row-line: rgba(255, 255, 255, 0.14);
	margin-top: 6px;
}

/* Light sections (page-builder background_color = light) */
[data-bcg="light"] .spacc,
.light .spacc,
.pb__section.light .spacc {
	--spacc-line:    rgba(37, 37, 37, 0.16);
	--spacc-head-bg: rgba(37, 37, 37, 0.035);
	--spacc-open-bg: rgba(37, 37, 37, 0.05);
	--spacc-row-line: rgba(37, 37, 37, 0.12);
}

/* --------------------------------------------------------------------------
   Item / header
   -------------------------------------------------------------------------- */
.spacc__item {
	border: 1px solid var(--spacc-line);
	border-radius: 8px;
	background: var(--spacc-head-bg);
	transition: background-color .2s ease, border-color .2s ease;
}
.spacc__item + .spacc__item { margin-top: 10px; }
.spacc__item.is-open {
	background: var(--spacc-open-bg);
	border-color: var(--spacc-red);
}

.spacc__heading { margin: 0; font: inherit; }

.spacc__head {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	text-align: left;
	font-family: Staatliches, "Work Sans", sans-serif;
	font-size: 26px;
	line-height: 1;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.spacc__head:hover .spacc__title { color: var(--spacc-red); }
.spacc__head:focus-visible {
	outline: 3px solid #ffda79;
	outline-offset: -3px;
	border-radius: 8px;
}
.spacc__item.is-open .spacc__title { color: var(--spacc-red); }

/* Plus / minus icon drawn with pseudo-elements */
.spacc__icon {
	position: relative;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid currentColor;
	opacity: .8;
	transition: transform .25s ease, opacity .2s ease, border-color .2s ease;
}
.spacc__icon::before,
.spacc__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: transform .25s ease;
}
.spacc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.spacc__item.is-open .spacc__icon {
	border-color: var(--spacc-red);
	color: var(--spacc-red);
	opacity: 1;
}
.spacc__item.is-open .spacc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

/* --------------------------------------------------------------------------
   Panel – animated with grid-template-rows (no JS height maths)
   -------------------------------------------------------------------------- */
.spacc__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .35s ease;
}
.spacc__panel[hidden] { display: none; }
.spacc__item.is-open .spacc__panel { grid-template-rows: 1fr; }

.spacc__body {
	min-height: 0;
	overflow: hidden;
	padding: 0 22px;
}
.spacc__item.is-open .spacc__body { padding-bottom: 8px; }

/* Rows reuse the theme's .sptable__row/.sptable__name/.sptable__value styles;
   these tweaks make them sit nicely inside a panel. */
.spacc .sptable--accordion { margin-top: 0; }
.spacc .sptable--accordion .sptable__row { min-height: 52px; }
.spacc .sptable--accordion .sptable__name,
.spacc .sptable--accordion .sptable__value {
	border-top: 1px solid var(--spacc-row-line);
	padding: 12px 0;
}
.spacc .sptable--accordion .sptable__row:first-child .sptable__name,
.spacc .sptable--accordion .sptable__row:first-child .sptable__value { border-top: 0; }
.spacc .sptable--accordion .sptable__name { font-size: 14px; letter-spacing: .08em; }
.spacc .sptable--accordion .sptable__value em.new {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 6px;
	border-radius: 3px;
	background: var(--spacc-red);
	color: #fff;
	font-size: 10px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: .08em;
	vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
	.spacc__panel, .spacc__icon, .spacc__icon::before, .spacc__icon::after, .spacc__item { transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.spacc__head { padding: 16px 16px; font-size: 22px; }
	.spacc__body { padding: 0 16px; }
	.spacc .sptable--accordion .sptable__row { flex-direction: column; min-height: 0; }
	.spacc .sptable--accordion .sptable__name,
	.spacc .sptable--accordion .sptable__value { width: 100%; }
	.spacc .sptable--accordion .sptable__name { padding-bottom: 4px; }
	.spacc .sptable--accordion .sptable__value { border-top: 0; padding-top: 0; }
}
