/*
 * Ad slot box (ad-slots.md D1; the unit's markup is ad-policy.md section 4).
 * Enqueued by mu-plugin/proteinindex/ads.php on the slot pages only, after
 * brand.css, whose --tpi-* tokens it reads.
 *
 * The unit prints its own box: .tpi-ad, the .tpi-ad__label line, and one
 * 1200x300 image link. Every slot sits outside a rail (front page between
 * bands, listing and archive just inside </main>), so the box takes the
 * rail's width and the image scales down to it. The .tpi-b form outranks
 * .tpi-b.is-layout-flow > *, which would zero the margins on the home page.
 */
.tpi-ad, .tpi-b .tpi-ad { box-sizing: border-box; width: min(1160px, 100% - 40px); margin: 32px auto 56px; padding: 10px 12px 12px; background: var(--tpi-white); border: 1px solid var(--tpi-line); color: var(--tpi-ink); }
.tpi-ad .tpi-ad__label { margin: 0 0 8px; font-family: var(--tpi-font-data); font-size: 11.5px; font-weight: 500; line-height: 1.3; letter-spacing: 0.04em; color: var(--tpi-ink); }
.tpi-ad a { display: block; line-height: 0; }
.tpi-ad img { display: block; width: 100%; max-width: 1200px; height: auto; margin-inline: auto; }
/*
 * guide-foot sits in main.foundry-guide-single, between the article and the
 * related rail (guide-ad-slot.md D3). Same specificity as the .tpi-b form
 * above and later in the file, so this top margin wins on a guide.
 */
.foundry-guide-single .tpi-ad { margin-top: var(--wp--preset--spacing--xl, 32px); }
