/*
 * Component-level polish follow-up — 2026-08-08.
 *
 * The sitewide rhythm pass intentionally fixed page/section geometry. These
 * rules address two component-local cases that only became obvious in real
 * interaction states: dense contact/message surfaces and the saved-baseline
 * verification banner rendered inside the dark report header.
 */

/* Contact / feedback forms: keep the two-column page composition, but reduce
 * accumulated card + form + Turnstile spacing so the interaction feels like
 * one compact task rather than a stack of isolated panels. */
.contact-surface__grid {
  gap: clamp(28px, 4vw, 56px);
}

.contact-route-list {
  gap: 10px;
  margin-top: var(--space-6);
}

.contact-route {
  min-height: 68px;
  padding: 12px var(--space-4);
}

.contact-note,
.feedback-principles {
  margin-top: var(--space-6);
}

.message-form__heading {
  padding: var(--space-5);
}

.message-form-card form {
  gap: 18px;
  padding: var(--space-5);
}

.message-field textarea {
  min-height: 136px;
}

.turnstile-region {
  gap: var(--space-1);
  padding: var(--space-3);
}

.message-submit {
  margin-top: 2px;
}

/* F027 saved-baseline verification is mounted inside .ofb-report__header.
 * Without an explicit light-surface contract it inherits the header's white
 * empty-state text and translucent header-button treatment, which makes the
 * light verification card look disabled. Keep this state intentionally
 * compact and self-contained. */
.ofb-report__header [data-report-verification] {
  width: min(100%, 920px);
  margin-top: var(--space-4);
  padding: 18px 20px;
  border-style: solid;
  border-color: var(--color-panel-border);
  background: var(--color-surface-subtle);
  color: var(--color-ink);
}

.ofb-report__header [data-report-verification] .ofb-policy-goal__row > strong,
.ofb-report__header [data-report-verification] .ofb-policy-goal__summary,
.ofb-report__header [data-report-verification] .unified-empty {
  color: var(--color-ink);
}

.ofb-report__header [data-report-verification] .ofb-policy-goal__hint,
.ofb-report__header [data-report-verification] .ofb-policy-goal__count {
  color: var(--text-muted);
}

.ofb-report__header [data-report-verification] .unified-empty {
  margin: var(--space-3) 0 0;
  font-size: var(--type-scale-small);
  font-weight: var(--font-weight-medium);
}

.ofb-report__header [data-report-verification] [data-report-baseline-controls] {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-panel-border);
}

.ofb-report__header [data-report-verification] .ofb-report__rerun {
  display: inline-flex;
  width: auto;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 8px 14px;
  border: 1px solid var(--color-panel-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-accent-hover);
  box-shadow: none;
  font-size: var(--type-scale-small);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
}

.ofb-report__header [data-report-verification] .ofb-report__rerun:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  transform: none;
}

.ofb-report__header [data-report-verification] a {
  color: var(--color-accent-hover);
}

@media (max-width: 680px) {
  .contact-surface__grid {
    gap: var(--space-6);
  }

  .message-form__heading,
  .message-form-card form {
    padding: var(--space-4);
  }

  .message-field textarea {
    min-height: 124px;
  }

  .ofb-report__header [data-report-verification] {
    width: 100%;
    padding: var(--space-4);
  }

  .ofb-report__header [data-report-verification] [data-report-baseline-controls] {
    align-items: stretch;
  }

  .ofb-report__header [data-report-verification] .ofb-report__rerun {
    width: 100%;
  }
}
