/* report.css: the form that reports illegal or abusive content
   (report.html), and what it shows once the report is sent.

   It wears the notice's two-column layout (privacy.css: the title and the
   lede on the left, the body on the right in a measure a person can read)
   and the site's own controls (controls.css: the square fields; button.css:
   the primary button with the folded corner). What is here is only what a
   form needs that those do not: a panel for the fields, a checkbox, a
   textarea, the emergency note, the reference, and the field no person
   sees.

   The checkbox is drawn, not the browser's: the browser's is blue, and the
   site has one accent. It is square like the fields, ink when checked (as the
   primary button is), 22px inside a label that is 44px tall, with the same
   focus ring as everything else.

   The hidden field (`.trap`) is moved off the page, not hidden with
   display:none, because a script that skips what is not displayed would then
   skip it too; it is aria-hidden and out of the tab order, so no person
   reaches it.

   Load order and the rest of the site: style.css's header. Tokens are in
   style.css. */

/* --- the emergency note ------------------------------------------- */

.legal-body .urgent{margin:0 0 var(--space-6);padding:var(--space-4);background:var(--danger-bg);color:var(--danger-fg);border-radius:var(--radius-s)}
.legal-body .urgent strong{color:var(--danger-fg)}

/* --- the form ------------------------------------------------------ */

.report{--ground:var(--surface);margin-top:var(--space-4);padding:var(--space-5);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-l)}
.report .field{margin-top:var(--space-4)}
.report .field:first-of-type{margin-top:0}
.report .hint{max-width:none}
.legal-body .report-error{margin:0 0 var(--space-4);font:500 var(--text-ui)/20px var(--font-sans);color:var(--danger-fg)}
.report [aria-invalid=true]{border-color:var(--danger-fg)}

/* select and textarea are .text fields too (controls.css) */
select.text{padding-right:var(--space-3);cursor:pointer}
.area{height:auto;min-height:144px;padding:10px 12px;line-height:22px;resize:vertical}

.trap{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

/* --- the good-faith box -------------------------------------------- */

.check{display:flex;gap:var(--space-3);align-items:flex-start;min-height:var(--control-l);margin-top:var(--space-5);padding-block:var(--space-2);color:var(--ink);font:400 var(--text-ui)/20px var(--font-sans);cursor:pointer}
.check input{appearance:none;-webkit-appearance:none;position:relative;flex:none;width:22px;height:22px;margin:0;background:var(--surface);border:1px solid var(--field-line);border-radius:0;cursor:pointer}
.check input:hover{border-color:var(--ink2)}
.check input:checked{background:var(--action);border-color:var(--action)}
.check input:checked::after{content:"";position:absolute;left:6px;top:1px;width:6px;height:12px;border:solid var(--on-action);border-width:0 2px 2px 0;transform:rotate(45deg)}
.check input:focus-visible{outline:2px solid var(--focus);outline-offset:2px}

.report-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3) var(--space-5);margin-top:var(--space-4)}

/* --- once it is sent ------------------------------------------------ */

.done{margin-top:var(--space-4);padding:var(--space-5);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-l)}
.done:focus{outline:0}
.done h2{margin:0 0 var(--space-3);padding:0;border:0}
.legal-body .done .reference{margin:var(--space-2) 0 var(--space-4);font:500 var(--text-3xl)/1.2 var(--font-mono);letter-spacing:.12em;color:var(--ink);overflow-wrap:anywhere}

@media (max-width:820px){
  .report,.done{padding:var(--space-4)}
  .report-actions .btn{width:100%}
}
