/*
 * Accessories Motor: brand guideline page (templates/brand.php). Loaded on that page only.
 * The --am-* values are the brand's source of truth until they move into theme.json.
 */

@font-face {
	font-family: "Work Sans";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/work-sans-latin.woff2") format("woff2");
}

.am-brand {
	--am-red: #e70606;
	--am-black: #0b0e10;
	--am-white: #fff;
	--am-mist: #f4f4f3;
	--am-line: #e2e2e0;
	--am-steel: #6b6f73;
	--am-green: #2e8b3d;
	--am-radius: 4px;
	--am-gutter: clamp(20px, 5vw, 48px);
	background: var(--am-white);
	color: var(--am-black);
	font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
}

.bg img {
	display: block;
	height: auto;
	max-width: 100%;
}

.bg-wrap {
	margin-inline: auto;
	width: min(100% - 2 * var(--am-gutter), 1080px);
}

/* Cover */
.bg-cover {
	border-bottom: 1px solid var(--am-line);
	padding-block: clamp(48px, 9vw, 104px) clamp(32px, 5vw, 56px);
}

.bg-kicker,
.bg-num {
	color: var(--am-red);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	margin: 0 0 24px;
	text-transform: uppercase;
}

.bg-cover__logo {
	width: min(100%, 620px);
}

.bg-cover__lead {
	font-size: clamp(18px, 2.2vw, 22px);
	line-height: 1.5;
	margin: 32px 0 0;
	max-width: 46ch;
}

.bg-toc {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 36px;
}

.bg-toc a {
	border: 1px solid var(--am-line);
	border-radius: 999px;
	color: var(--am-black);
	font-size: 14px;
	font-weight: 500;
	padding: 6px 14px;
	text-decoration: none;
}

.bg-toc a:hover,
.bg-toc a:focus-visible {
	border-color: var(--am-black);
}

/* Sections */
.bg-section {
	padding-block: clamp(48px, 7vw, 88px);
}

.bg-section--band {
	background: var(--am-mist);
}

.bg-section--dark {
	background: var(--am-black);
	color: var(--am-white);
}

.bg-num {
	margin-bottom: 8px;
}

.bg-section h2 {
	color: inherit;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.1;
	margin: 0 0 16px;
	text-transform: uppercase;
}

.bg-section h3 {
	color: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	margin: 40px 0 16px;
	text-transform: uppercase;
}

.bg-intro {
	font-size: 18px;
	margin: 0 0 32px;
	max-width: 60ch;
}

.bg-section--dark .bg-intro {
	color: rgb(255 255 255 / 82%);
}

.bg-grid {
	display: grid;
	gap: 20px;
	margin-bottom: 20px;
}

.bg-grid--2 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.bg-grid--3 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.bg-grid--4 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

/* Logo tiles */
.bg-tile {
	margin: 0;
}

.bg-tile figcaption {
	color: var(--am-steel);
	font-size: 14px;
	margin-top: 10px;
}

.bg-tile figcaption strong {
	color: var(--am-black);
}

.bg-stage {
	align-items: center;
	aspect-ratio: 16 / 8;
	background: var(--am-white);
	border: 1px solid var(--am-line);
	border-radius: var(--am-radius);
	display: flex;
	justify-content: center;
	overflow: hidden;
	padding: 9%;
}

.bg-stage--dark {
	background: var(--am-black);
	border-color: var(--am-black);
}

.bg-stage--red {
	background: var(--am-red);
	border-color: var(--am-red);
}

.bg-clear {
	border: 1px dashed var(--am-red);
	padding: 12%;
	position: relative;
	width: 100%;
}

.bg-clear img {
	outline: 1px solid rgb(231 6 6 / 35%);
}

.bg-clear__x {
	color: var(--am-red);
	font-size: 13px;
	font-weight: 600;
	position: absolute;
}

.bg-clear__x--t {
	left: 50%;
	top: 4%;
	transform: translateX(-50%);
}

.bg-clear__x--l {
	left: 4%;
	top: 50%;
	transform: translateY(-50%);
}

.bg-stage--min .bg-min {
	width: 120px;
}

.bg-donts .bg-stage {
	aspect-ratio: 16 / 9;
	padding: 12%;
	position: relative;
}

.bg-donts .bg-stage::after {
	background: var(--am-red);
	border-radius: 999px;
	color: #fff;
	content: "Don’t";
	font-size: 11px;
	font-weight: 700;
	left: 10px;
	letter-spacing: 0.06em;
	padding: 2px 8px;
	position: absolute;
	text-transform: uppercase;
	top: 10px;
}

.bg-donts .bg-stage--red::after {
	background: var(--am-black);
}

.bg-donts .is-stretched {
	transform: scale(1.15, 1.9);
}

.bg-donts .is-recoloured {
	filter: hue-rotate(215deg) saturate(1.4);
}

.bg-donts .is-tilted {
	filter: drop-shadow(5px 6px 0 rgb(0 0 0 / 35%));
	transform: rotate(-9deg);
}

.bg-note {
	border-left: 3px solid var(--am-red);
	margin: 32px 0 0;
	max-width: 68ch;
	padding-left: 16px;
}

/* Colour */
.bg-swatches {
	display: grid;
	gap: 24px 20px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
}

.bg-swatch__chip {
	align-items: flex-end;
	border: 1px solid var(--am-line);
	border-radius: var(--am-radius);
	display: flex;
	font-size: 14px;
	font-weight: 600;
	height: 112px;
	padding: 12px;
}

.bg-swatch__chip--light {
	border-color: transparent;
	color: #fff;
}

.bg-swatch__chip--dark {
	color: var(--am-black);
}

.bg-swatch__name {
	font-weight: 700;
	margin: 12px 0 0;
}

.bg-swatch__code {
	color: var(--am-steel);
	font-size: 13px;
	margin: 0;
}

.bg-swatch__use {
	font-size: 14px;
	margin: 6px 0 0;
}

.bg-ratio {
	border: 1px solid var(--am-line);
	border-radius: var(--am-radius);
	display: flex;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 20px;
	overflow: hidden;
}

.bg-ratio span {
	padding: 14px 12px;
}

.bg-ratio__w {
	background: var(--am-white);
	flex: 7;
}

.bg-ratio__k {
	background: var(--am-black);
	color: #fff;
	flex: 2;
}

.bg-ratio__r {
	background: var(--am-red);
	color: #fff;
	flex: 1;
	white-space: nowrap;
}

.bg-list {
	margin: 0;
	max-width: 70ch;
	padding-left: 1.1em;
}

.bg-list li {
	margin-bottom: 6px;
}

.bg-list li::marker {
	color: var(--am-red);
}

/* Typography */
.bg-type {
	border-top: 1px solid var(--am-line);
	margin-bottom: 28px;
}

.bg-type__row {
	align-items: baseline;
	border-bottom: 1px solid var(--am-line);
	display: grid;
	gap: 8px 32px;
	grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
	padding-block: 20px;
}

.bg-type__row p {
	margin: 0;
}

.bg-type__meta {
	color: var(--am-steel);
	font-size: 13px;
	line-height: 1.5;
}

.bg-type__display {
	font-size: clamp(28px, 4.4vw, 40px);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.1;
	text-transform: uppercase;
}

.bg-type__h2 {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.bg-type__h3 {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
}

.bg-type__body {
	max-width: 58ch;
}

.bg-type__price {
	color: var(--am-red);
	font-size: 20px;
	font-weight: 600;
}

.bg-type__price del {
	color: var(--am-steel);
	font-size: 15px;
	font-weight: 400;
	margin-left: 8px;
}

.bg-type__small,
.bg-small {
	color: var(--am-steel);
	font-size: 14px;
}

.bg-small {
	margin: 20px 0 0;
	max-width: 70ch;
}

/* Buttons and labels */
.bg-ui {
	display: grid;
	gap: 28px 24px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.bg-ui__cap {
	color: var(--am-steel);
	font-size: 14px;
	margin: 12px 0 0;
}

.bg-ui__cap strong {
	color: var(--am-black);
}

.bg-btn {
	border: 2px solid transparent;
	border-radius: var(--am-radius);
	display: inline-block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	padding: 12px 22px;
	text-decoration: none;
}

.bg-btn--primary {
	background: var(--am-red);
	color: #fff;
}

.bg-btn--dark {
	background: var(--am-black);
	color: #fff;
}

.bg-btn--outline {
	background: transparent;
	border-color: var(--am-black);
	color: var(--am-black);
}

a.bg-btn--outline:hover,
a.bg-btn--outline:focus-visible {
	background: var(--am-black);
	color: #fff;
}

.bg-badge {
	border-radius: var(--am-radius);
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin: 0 6px 6px 0;
	padding: 5px 10px;
	text-transform: uppercase;
}

.bg-badge--sale {
	background: var(--am-red);
	color: #fff;
}

.bg-badge--stock {
	background: #e6f3e8;
	color: #1f6a2b;
}

.bg-badge--out {
	background: var(--am-line);
	color: #44484b;
}

/* Imagery and voice */
.bg-rules h3,
.bg-voice h3 {
	margin-top: 0;
}

.bg-rules {
	gap: 32px 48px;
}

.bg-voice {
	gap: 28px 40px;
	margin-bottom: 0;
}

.bg-voice p {
	color: rgb(255 255 255 / 82%);
	margin: 0;
}

.bg-voice h3 {
	color: #fff;
}

.bg-section--dark .bg-num {
	color: #ff5a4f;
}

/* Files and footer */
.bg-files {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.bg-foot {
	border-top: 1px solid var(--am-line);
	color: var(--am-steel);
	font-size: 13px;
	padding-block: 28px;
}

.bg-foot p {
	margin: 0;
}

@media (max-width: 640px) {
	.bg-type__row {
		grid-template-columns: 1fr;
	}
}

@media print {
	.bg-toc {
		display: none;
	}

	.bg-section {
		break-inside: avoid;
	}
}
