/**
 * Ad format (components/ad-format): the book on a muted panel, its pages
 * white with a border, the editorial text as border-colored lines, the ad
 * in brand red; the newsletter's column the same way. The panel keeps one height so cards side by side line up.
 */

.sba-c-ad-format {
	padding: 24px;
	border-radius: var(--sba-radius);
	background-color: var(--sba-muted);
}

.sba-c-ad-format svg {
	display: block;
	width: 100%;
	height: 112px;
	overflow: hidden;
}

/* The newsletter runs into the panel's foot, cut off as a long email is
   in its window. */
.sba-c-ad-format.sba-c-ad-format-email {
	padding-bottom: 0;
}

.sba-c-ad-format.sba-c-ad-format-email svg {
	height: 136px;
}

.sba-c-ad-format .sba-c-ad-format-page {
	fill: #fff;
}

.sba-c-ad-format .sba-c-ad-format-line {
	fill: var(--sba-border);
}

.sba-c-ad-format .sba-c-ad-format-mark {
	fill: var(--sba-slate-light);
}

.sba-c-ad-format .sba-c-ad-format-ad {
	fill: var(--sba-red);
}

/* The newsletter's text ad: its text lines a lighter red, on red-light. */
.sba-c-ad-format .sba-c-ad-format-ad-soft {
	fill: color-mix(in srgb, var(--sba-red) 45%, #fff);
}

.sba-c-ad-format .sba-c-ad-format-ad-ground {
	fill: var(--sba-red-light);
}

.sba-c-ad-format .sba-c-ad-format-gutter,
.sba-c-ad-format .sba-c-ad-format-edge {
	fill: none;
	stroke: var(--sba-slate-light);
	stroke-width: 1.5;
	vector-effect: non-scaling-stroke;
}
