/* Structure only.
 *
 * Colour, type, border, shadow and decorative treatment were stripped when
 * this became the blank starter. The design comes from the build's own
 * Figma / Claude Design work, not from here.
 *
 * Spacing and sizing are exposed as --fw-<selector>-<property> tokens that
 * default to 0, so the starter asserts nothing and the design layer sets
 * them. Everything left is layout mechanics the block needs to function.
 */

/* Block: framework/content-cards — row of plain content CARDS.
   Same layout family as framework/steps, but no number badges and no arrows
   between cards. Cards share the row, wrap to a new row when they would get
   too narrow, and stack to a single column on mobile. */

.fw-content-cards {
	padding: var(--fw-content-cards-padding, 0);
}

/* Optional section title, centred inside the band above the cards. Inherits the
   theme heading styles from theme.json; this just handles spacing. */
.fw-content-cards__title {
	max-width: var(--fw-content-cards-title-max-width, none);
	margin: var(--fw-content-cards-title-margin, 0);
	text-align: center;
}

.fw-content-cards__inner {
	max-width: var(--fw-content-cards-inner-max-width, none);
	margin: var(--fw-content-cards-inner-margin, 0);
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: var(--fw-content-cards-inner-gap, 0);
}

/* Each card shares the row (basis 260px), wrapping when they'd get too narrow.
   Front-end children are .fw-content-card (child style.css sets the same flex);
   this covers any non-card direct child too. */
.fw-content-cards__inner > * {
	flex: 1 1 260px;
	min-width: 0;
}

/* Single column on small screens. */
@media ( max-width: 700px ) {
	.fw-content-cards__inner {
	flex-direction: column;
	gap: var(--fw-content-cards-inner-gap, 0);
}
}

/* Optional caption, centred below the cards within the same band. */
.fw-content-cards__caption {
	text-align: center;
	max-width: var(--fw-content-cards-caption-max-width, none);
	margin: var(--fw-content-cards-caption-margin, 0);
}

/* ---------------------------------------------------------------
   Correction, not design.

   At this width the row becomes a column, and a flex-basis set for a
   horizontal row is then read as a HEIGHT. The cards get clipped to it.
   Found on the SCR build. `flex: 0 0 auto` lets each card take its own
   content height once stacked.
   --------------------------------------------------------------- */
@media ( max-width: 700px ) {
	.fw-content-cards__inner > * { flex: 0 0 auto; }
}

/* ---------------------------------------------------------------
   Floor gutter. Most section blocks carry `padding: … 20px`; this
   one and `banner` did not, so once a build caps the inner at the
   1400 container the content sits on the glass between 1400 and
   1440. Found on IBIA, where full bleed bands hit the edge from
   783 up.
   --------------------------------------------------------------- */
.fw-content-cards {
	padding-inline: var(--fw-content-cards-padding-inline, 20px);
}
