/* /contact (ADR 0121). Colors come from the site's variables, so light, dark
   and night need no stylesheet of their own. Form basics: developers.css. */

.ct-page { max-width: 1040px; }
.ct-grid { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .ct-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }

.ct-form { gap: 10px; }
.ct-kinds { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ct-kinds legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; padding: 0; }
.ct-form .ct-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
}
.ct-kind:has(input:checked) { border-color: var(--accent-moon); box-shadow: inset 0 0 0 1px var(--accent-moon); }
.ct-kind input { accent-color: var(--accent-moon); margin: 0; }

.ct-form textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  resize: vertical;
  min-height: 9rem;
  line-height: 1.5;
}
.ct-form textarea:focus-visible, .ct-kind input:focus-visible, .ct-include input:focus-visible { outline: 2px solid var(--accent-moon); outline-offset: 2px; }
.ct-form input[readonly] { color: var(--muted); }

.ct-details { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.ct-details summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; }
.ct-details[open] summary { margin-bottom: 8px; }
.ct-form .ct-include { font-weight: 500; display: flex; gap: 8px; align-items: flex-start; }
.ct-detail-list { margin: 8px 0; padding-left: 18px; color: var(--muted); font-size: 0.88rem; overflow-wrap: anywhere; }
.ct-detail-list:empty { display: none; }

/* The trap field: off screen for people, still in the form for bots. */
.ct-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.ct-aside p { margin: 0; }

/* /admin/feedback */
.ct-join { margin-top: 10px; }
.ct-filters { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.ct-filters a[aria-current="true"] { font-weight: 700; text-decoration: none; }
.ct-message[data-status="new"] { box-shadow: inset 4px 0 0 var(--accent-moon), var(--shadow); }
.ct-message[data-status="done"], .ct-message[data-status="spam"] { opacity: 0.75; }
.ct-message p { margin: 0; }
.ct-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
