/*
 * compliance.css — domain CSS classes for the Compliance area.
 *
 * ============================================================
 *  DESIGN SYSTEM RULES — read before adding any CSS to this file
 * ============================================================
 *
 *  1. VALUES
 *     Never hardcode colors or spacing. Always use var(--color-*) and
 *     calc(var(--spacing) * N). No #hex, no rgb(), no raw px/rem for
 *     color or spacing. Raw rem is OK for non-spacing, non-color
 *     dimensions (max-width, border-radius, font-size, breakpoints)
 *     when no token fits — but prefer tokens where they exist.
 *
 *  2. REACH FOR PRIMITIVES FIRST (see primitives.css)
 *       Layout?      Use .stack, .stack-sm, .stack-lg, .row, .row-between,
 *                    .cluster, .switcher, .center, .grid-auto, .box.
 *       Typography?  Use .text-heading, .text-body, .text-muted.
 *       Surface/bg?  Use .surface, .surface-elevated, .border-subtle.
 *     If the markup can be expressed as primitives, STOP. Do not create
 *     a new class. Duplication is worse than an imperfect class name.
 *
 *  3. NEW CLASSES ONLY WHEN ALL THREE HOLD
 *     a. The combination appears 3+ times (rule of three).
 *     b. You can name it after the domain thing (".compliance-request-card"),
 *        not appearance (".gray-card-with-border").
 *     c. It is NOT expressible as a one-line primitive combo.
 *
 *  4. NAMING
 *     All classes in this file are prefixed .compliance-*.
 */

/**
 * .compliance-request-form-card
 * Centers the form card and adds top margin, for public compliance request
 * pages. This page renders outside the app shell (no signed-in nav, no page
 * header) for its normal anonymous visitors, so the card owns its own
 * centering rather than relying on Cards::CardComponent's size variant,
 * which only constrains width.
 *
 * Used by: app/views/compliance/requests/new.html.erb
 */
.compliance-request-form-card {
  margin-top: calc(var(--spacing) * 8);
  margin-inline: auto;
}

/**
 * .compliance-request-show-card
 * All-sides margin on the detail card for the compliance request
 * show page.
 *
 * Used by: app/views/compliance/requests/show.html.erb
 */
.compliance-request-show-card {
  margin: calc(var(--spacing) * 8);
}

/**
 * .compliance-request-form-body
 * Extra interior padding around the form content inside the
 * Cards::CardComponent on the public compliance-request-form page
 * (layered on top of the card's own padding for a public-facing
 * form with more breathing room).
 *
 * Used by: app/views/compliance/requests/new.html.erb
 */
.compliance-request-form-body {
  padding: calc(var(--spacing) * 4);
}

/**
 * .compliance-request-form-title
 * Centered large title at the top of the public compliance-request
 * form. Layers on .text-heading for color.
 *
 * Used by: app/views/compliance/requests/new.html.erb
 */
.compliance-request-form-title {
  text-align: center;
  font-size: var(--font-size-2xl);
}

/**
 * .compliance-request-form-description
 * Themed explanatory copy with top + bottom rhythm between the
 * title and the form inputs on the public compliance-request form.
 *
 * Used by: app/views/compliance/requests/new.html.erb
 */
.compliance-request-form-description {
  margin-top: calc(var(--spacing) * 8);
  margin-bottom: calc(var(--spacing) * 8);
  color: var(--color-text-body);
}

/**
 * .compliance-request-form-section
 * Top rhythm for major sections of the public compliance-request
 * form (the form container under the title, the submit-button row
 * below the fields).
 *
 * Used by: app/views/compliance/requests/new.html.erb (2 instances)
 */
.compliance-request-form-section {
  margin-top: calc(var(--spacing) * 8);
}

/**
 * .compliance-request-form-legend
 * Prompt above the rights checkboxes on the public compliance-request
 * form, with bottom rhythm separating it from the checkbox list.
 *
 * Used by: app/views/compliance/requests/new.html.erb
 */
.compliance-request-form-legend {
  margin-bottom: calc(var(--spacing) * 4);
  color: var(--color-text-body);
}

/**
 * .compliance-submission-request
 * Vertical rhythm between each request row on the public submission
 * status page, so grouped requests read as distinct blocks.
 *
 * Used by: app/views/compliance/submissions/show.html.erb
 */
.compliance-submission-request {
  margin-top: calc(var(--spacing) * 6);
}
