/* .media-placeholder — a labelled stand-in for a photo not yet shot. Load
   AFTER tokens.css. See public/components/README.md for load order.

   No owning component function or tag: this is plain markup (a <figure> or a
   <div>), not a component, because there is no behaviour to wrap — only a
   visual treatment repeated across pages that have "image needed" notes.
   Generalised from .map-figure__placeholder (report.css), which drew the
   same dashed-box shape for one specific figure first.

   Dashed, and labelled: a page waiting on a photo should look unfinished in
   review rather than merely empty. Replace the element (not just its
   background) once a real image exists — this class should never end up
   applied to a real <img>. */
.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-3);
  text-align: center;
  background-color: var(--color-surface-hover);
  border: 2px dashed var(--color-border-strong);
  border-radius: var(--radius-default);
  color: var(--color-text-muted);
  font-size: var(--size-100);
  line-height: var(--line-height-prose);
}

/* Sets the box's proportions without a fixed height, so the placeholder
   matches whatever aspect ratio the eventual photo will need. */
.media-placeholder--4-3 {
  aspect-ratio: 4 / 3;
}

.media-placeholder--3-2 {
  aspect-ratio: 3 / 2;
}

/* --- media split ----------------------------------------------------------- */
/* A text block beside a figure, side by side above ~640px and stacked below
   it. Distinct from .cards-grid: two unequal children, not a repeated set. */
.media-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.media-split__caption {
  margin: 0;
  font-size: var(--size-300);
  color: var(--color-text-muted);
}

/* --- feature grid --------------------------------------------------------- */
/* Three (or more) image-plus-caption items in a row. Distinct from
   .cards-grid (cards.css): a cards-grid holds x-card-link, each a whole
   clickable card — this holds plain content with no link and no border. */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.feature-grid__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.feature-grid__caption {
  font-size: var(--size-400);
  line-height: var(--line-height-body);
  color: var(--color-text-primary);
}

/* --- icon badge ------------------------------------------------------------ */
/* A small square placeholder for a mark/icon that doesn't exist yet, sat
   inline in a heading (e.g. before a branded product name). Same "labelled,
   not just empty" reasoning as .media-placeholder, sized for inline use
   instead of a figure — 1.5em square scales with the heading's own
   font-size rather than a fixed pixel size, so it stays proportional
   whether the heading is a section-heading or something smaller. */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  margin-right: 0.4em;
  vertical-align: -0.35em;
  border-radius: var(--radius-default);
  background-color: var(--color-surface-hover);
  border: var(--border-width-hairline) solid var(--color-border-subtle);
  font-family: var(--font-sans);
  font-size: 0.4em;
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
