/* Ad slot component (PTECH-10518, T12). Everything is scoped under .coi-v2.
   Every slot is a visible, fixed-size reserved box from the first paint, and it
   never collapses when no ad fills or consent is declined, so the page does not
   jump. Ad box sizes are the documented px exception (300x250; the desktop rail
   is 300 wide with a reserved height from a setting); everything else stays in
   rem. */
.coi-v2 .coi-ad {
  margin: 0 auto 1rem;
  text-align: center;
}

.coi-v2 .coi-ad__label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coi-muted);
  margin-bottom: 0.25rem;
}

.coi-v2 .coi-ad__box {
  /* stylelint-disable-next-line unit-disallowed-list -- the 300px ad box is a documented px exception (CLAUDE.md section 2) */
  width: 300px;
  max-width: 100%;
  /* stylelint-disable-next-line unit-disallowed-list -- ad box height is a documented px exception, 250 tall */
  height: 250px;
  margin: 0 auto;
}

/* In the article text: a little more room above and below. */
.coi-v2 .coi-ad--in-article {
  margin: 1.75rem auto;
}

/* Desktop sticky rail: reserved height comes from the COI settings page
   (--coi-ad-rail-height, default 600) so the page does not jump. */
.coi-v2 .coi-ad--rail .coi-ad__box {
  /* stylelint-disable-next-line unit-disallowed-list -- the 600px reserved rail ad height is a documented px exception (ad box size), same value as the setting default */
  height: var(--coi-ad-rail-height, 600px);
}
