/* The "Report an issue" page only (loaded by report.html after site.css, which defines the colour tokens). */
:root {
  --danger: #a8231b;
  --danger-bg: rgba(168, 35, 27, 0.08);
  --ok: #0a6b4a;
  --ok-bg: rgba(10, 107, 74, 0.09);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --danger: #ff9b92;
    --danger-bg: rgba(255, 155, 146, 0.1);
    --ok: #3ee3a4;
    --ok-bg: rgba(62, 227, 164, 0.1);
  }
}
:root[data-theme='dark'] {
  --danger: #ff9b92;
  --danger-bg: rgba(255, 155, 146, 0.1);
  --ok: #3ee3a4;
  --ok-bg: rgba(62, 227, 164, 0.1);
}

.report {
  padding-block: clamp(28px, 5vw, 56px) clamp(40px, 6vw, 80px);
}
/* With JavaScript the form appears after site.config.json has been read: keep the footer below the first screen
   in every state so nothing visible jumps. */
.js .report {
  min-height: 100vh;
}
.report > h1 {
  margin-bottom: 0.4em;
}
.report > .section-lead {
  margin-bottom: 1.6em;
}
.report .panel {
  max-width: 46rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 0 0 24px;
}
.report .panel > :last-child {
  margin-bottom: 0;
}
.report .panel h2 {
  font-size: 1.35rem;
}
@media (max-width: 560px) {
  .report .panel {
    padding: 16px;
  }
}

/* Fields */
.report .field {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.report label,
.report legend,
.report .check-label {
  display: block;
  font-weight: 600;
  margin: 0 0 4px;
  padding: 0;
}
.report .opt {
  font-weight: 400;
  color: var(--text-dim);
}
.report .hint {
  color: var(--text-dim);
  font-size: 0.925rem;
  margin: 0 0 8px;
}
.report .alt {
  margin: 20px 0 0;
}
.report input[type='text'],
.report input[type='email'],
.report textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1rem; /* 16 px or more: phones do not zoom into the field */
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 11px 12px;
  min-height: 48px;
}
.report textarea {
  min-height: 11rem;
  resize: vertical;
  line-height: 1.5;
}
.report input::placeholder {
  color: var(--text-dim);
  opacity: 0.8;
}
.report input:focus-visible,
.report textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.report .is-invalid {
  border-color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger);
}
.report .counter {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.report .counter.is-over {
  color: var(--danger);
  font-weight: 600;
}
.report .field-error {
  margin: 8px 0 0;
  color: var(--danger);
  font-weight: 600;
  font-size: 0.95rem;
}
.report .field-error::before {
  content: 'Error: ';
}

/* Kind: three big radio buttons */
.report .kind-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.report .kind {
  position: relative;
  display: block;
  margin: 0;
  flex: 1 1 11rem;
  font-weight: 400;
}
.report .kind input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.report .kind span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg);
}
.report .kind span::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: transparent;
}
.report .kind input:checked + span {
  border-color: var(--accent-text);
  background: var(--glow);
  font-weight: 600;
}
.report .kind input:checked + span::before {
  border-color: var(--accent-text);
  background: radial-gradient(circle, var(--accent-text) 0 45%, transparent 50%);
}
.report .kind input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.report .about-grid {
  display: grid;
  gap: 14px 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .report .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.report .about label {
  font-weight: 400;
  color: var(--text);
}

/* Honeypot: out of sight for people and screen readers (aria-hidden), but not display:none so simple bots fill it */
.report .hp {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.report .consent {
  font-size: 0.925rem;
  color: var(--text-dim);
  margin: 0 0 22px;
  max-width: 62ch;
}

/* Turnstile */
.report .ts-box {
  min-height: 65px;
  max-width: 100%;
  border-radius: 8px;
}
.report .ts-box:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.report #ts-status {
  margin: 8px 0 0;
  min-height: 1.4em;
}
.report .btn-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.925rem;
}

/* Send button, busy state, messages */
.report .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.report .actions .btn {
  min-width: 10.5rem;
}
.report .btn[aria-disabled='true'] {
  opacity: 0.75;
  cursor: progress;
}
.report .btn.is-busy::after {
  content: '';
  flex: none;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: report-spin 0.8s linear infinite;
}
@keyframes report-spin {
  to {
    transform: rotate(360deg);
  }
}
.report .status {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.report .alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--danger);
  background: var(--danger-bg);
  color: var(--text);
  font-weight: 600;
  border-left-width: 5px;
}
.report .alert::before {
  content: 'Not sent. ';
  color: var(--danger);
}

/* Success */
.report .success {
  border-color: var(--ok);
  border-left-width: 5px;
  background: linear-gradient(0deg, var(--ok-bg), var(--ok-bg)), var(--surface);
}
.report .success h2:focus {
  outline: none;
}
.report .success code {
  font-size: 1rem;
  word-break: break-all;
}
.report .btn-row {
  margin-top: 4px;
}
