/* Behind a Campaign — the download form (STYLE.md under Parts, Download form).
   A small white sheet over the page, like the contact sheet: one column of fields. */

.dl {
  width: min(480px, 100% - 32px);
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: clamp(24px, 4vw, 40px);
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-y: auto;
}
.dl::backdrop {
  background: rgba(14, 14, 14, 0.6);
  background: color-mix(in srgb, var(--ink) 60%, transparent);
}
.dl [hidden] { display: none; }

.dl-close {
  float: right;
  margin: -6px -6px 0 12px;
  padding: 6px;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
}
.dl-close:hover, .dl-close:focus-visible { color: var(--ink); border-bottom-color: var(--ink); outline: none; }

.dl-title {
  margin-top: 10px;
  font-weight: 500;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.dl-form {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}
.dl .field-row input:user-invalid { border-bottom: 2px solid var(--ink); }

.dl-note { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.dl-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; }
.dl-error { font-size: 15px; font-weight: 500; color: var(--ink); }
.dl-form .form-foot { margin-top: 0; }
.dl-done { margin-top: 28px; justify-content: flex-start; }
