/*
 * Section.module.css → the shared "section" part.
 *
 * Ported by scripts/port-css.mjs. Class names are prefixed to survive being
 * flattened out of CSS Modules; design tokens are rewritten to the custom
 * properties theme.json emits. Edit this file, not the original.
 */

.px-section {
  position: relative;
  background: var(--bg);
  color: var(--fg);
}

.px-section__inner {
  width: 100%;
  max-width: var(--wp--custom--container);
  margin-inline: auto;
  padding-inline: var(--wp--custom--gutter);
  padding-block: var(--wp--preset--spacing--band);
}

.px-section__flush {
  padding-block: 0;
}

.px-section__tight {
  padding-block: clamp(1rem, 2vw, 1.75rem);
}

/* ---- Section header: label left, action right, rule underneath ---- */

.px-section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--wp--preset--spacing--md) var(--wp--preset--spacing--xl);
  padding-bottom: var(--wp--preset--spacing--lg);
}

.px-section__header-rule {
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--wp--preset--spacing--xxl);
}

.px-section__eyebrow {
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
