/*
 * feedback.html: the "Let us know" form. The page-head register from
 * site.css, the field shapes from updates.css (one border, the site's own
 * type), and a honeypot that no person sees.
 */
.feedback-head { padding-bottom: 3rem; }
.feedback-lead { max-width: 40rem; margin-bottom: 1.25rem; }
.feedback-form { max-width: 34rem; }
.feedback-form label[for] { display: block; margin-top: 1rem; font-weight: 600; }
.feedback-form .btn { margin-top: 1rem; }

.feedback-kinds {
  border: 0; padding: 0; margin: 0 0 .25rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem;
}
.feedback-kinds legend { font-weight: 600; margin-bottom: .5rem; }
.feedback-kind {
  display: flex; gap: .6rem; align-items: center; min-height: 44px; padding: .5rem .75rem;
  border: 1px solid currentColor; border-radius: 6px; cursor: pointer; line-height: 1.3;
}
.feedback-kind:has(input:checked) { background: var(--ink); color: var(--ground); }
.feedback-kind input { margin: 0; flex: 0 0 auto; width: 1.25rem; height: 1.25rem; }
@media (max-width: 480px) { .feedback-kinds { grid-template-columns: 1fr; } }

.feedback-text,
.feedback-email {
  display: block; width: 100%; margin: .35rem 0 .1rem; padding: .55rem .6rem;
  font: inherit; line-height: 1.45; border: 1px solid currentColor; border-radius: 6px;
  background: transparent; color: inherit;
}
.feedback-text { resize: vertical; min-height: 9rem; }
.feedback-count { margin: .3rem 0 0; font-size: .85rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.feedback-help { margin: .3rem 0 0; font-size: .9rem; opacity: .78; }
.page-head .feedback-fine { margin: .6rem 0 0; font-size: .85rem; line-height: 1.45; color: var(--ink-3); }

/* The honeypot: out of the flow, out of the accessibility tree, never shown. */
.feedback-trap {
  position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;
}

/* Empty and in the DOM rather than hidden, so the live region is registered
   before it has anything to announce. */
.feedback-msg { margin: .9rem 0 0; font-weight: 500; min-height: 1.4em; }
.feedback-msg:empty { margin: 0; min-height: 0; }
.feedback-msg.is-ok { color: var(--good); }
.feedback-msg.is-bad { color: var(--bad); }
.feedback-text[aria-invalid="true"],
.feedback-email[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
