/* ============================================================
   REPORT AN ISSUE — loaded only from reportIssue.pug
   Visual source: report-issue design reference
   Fields / mailto wiring stay in ui.js (#sk-report-form)
   ============================================================ */

:root {
  --ri-bg: #f3f6fc;
  --ri-ink: #0b1b3f;
  --ri-muted: #5b6475;
  --ri-line: #e5e9f2;
  --ri-field: #e8edf5;
  --ri-card: #ffffff;
  --ri-accent: #2563eb;
  --ri-accent-hover: #1d4ed8;
  --ri-readonly: #eef1f6;
  --ri-shadow: 0 8px 24px rgba(15, 27, 63, 0.05);
  --ri-radius: 16px;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
}

body:has(.report-page) {
  background: var(--ri-bg);
  color: var(--ri-ink);
  font-family: var(--font-sans);
  letter-spacing: 0;
}

body:has(.report-page) * {
  font-family: inherit;
}

body:has(.report-page) .footer {
  display: none;
}

.report-page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 40px 96px;
}

.report-copy {
  max-width: 36rem;
  margin: 0 0 28px;
}

.report-copy h1 {
  margin: 0 0 12px;
  color: var(--ri-ink);
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: var(--font-semibold);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.report-lede {
  margin: 0;
  color: var(--ri-muted);
  font-size: 1rem;
  font-weight: var(--font-normal);
  line-height: 1.55;
}

.report-lede a {
  color: inherit;
  font-weight: var(--font-medium);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.report-lede a:hover {
  color: var(--ri-accent);
}

.report-card {
  max-width: 36rem;
  margin: 0;
  padding: 28px 28px 24px;
  background: var(--ri-card);
  border: 1px solid rgba(226, 232, 245, 0.9);
  border-radius: var(--ri-radius);
  box-shadow: var(--ri-shadow);
}

.report-card .input-group {
  margin-bottom: 18px;
}

.report-card .input-group:last-of-type {
  margin-bottom: 0;
}

.report-card .input-group label {
  margin-bottom: 8px;
  color: var(--ri-ink);
  font-size: 0.875rem;
  font-weight: var(--font-medium);
  letter-spacing: 0;
}

.report-card .input-group input,
.report-card .input-group textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--ri-field);
  border-radius: 999px;
  background: #fff;
  color: var(--ri-ink);
  font-size: 0.9rem;
  font-weight: var(--font-normal);
  line-height: 1.4;
  box-shadow: none;
}

.report-card .input-group textarea {
  border-radius: 12px;
  min-height: 96px;
  resize: vertical;
  line-height: 1.55;
}

.report-card .input-group input::placeholder,
.report-card .input-group textarea::placeholder {
  color: #9aa3b5;
}

.report-card .input-group input:focus,
.report-card .input-group textarea:focus {
  outline: none;
  border-color: var(--ri-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.report-card .input-group input[readonly] {
  background: var(--ri-readonly);
  color: #6b7280;
  cursor: default;
}

.report-card .input-group input[readonly]:focus {
  border-color: var(--ri-field);
  box-shadow: none;
}

.report-card .required-mark {
  color: #ef4444;
  font-weight: var(--font-semibold);
}

.report-actions.form-actions {
  justify-content: flex-start;
  gap: 10px;
  margin-top: 22px;
}

.report-actions .btn {
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: var(--font-medium);
  box-shadow: none;
  transform: none;
}

.report-actions .btn.primary {
  order: 0;
  background: var(--ri-accent);
  border-color: var(--ri-accent);
  color: #fff;
}

.report-actions .btn.primary:hover {
  background: var(--ri-accent-hover);
  border-color: var(--ri-accent-hover);
  box-shadow: none;
  transform: none;
}

.report-actions .btn.ghost {
  background: #fff;
  border: 1px solid var(--ri-line);
  color: var(--ri-ink);
}

.report-actions .btn.ghost:hover {
  background: #fff;
  border-color: #c5cad6;
  color: var(--ri-ink);
}

.report-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 36rem;
  margin: 18px 0 0;
}

.report-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px 0 12px;
  background: #fff;
  border: 1px solid rgba(232, 237, 245, 0.95);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(15, 27, 63, 0.04);
  color: var(--ri-ink);
  font-size: 0.875rem;
  font-weight: var(--font-medium);
  text-decoration: none;
}

.report-pill:hover {
  border-color: var(--ri-field);
  box-shadow: 0 8px 18px rgba(15, 27, 63, 0.07);
  color: var(--ri-ink);
}

.report-pill:focus-visible {
  outline: 2px solid var(--ri-accent);
  outline-offset: 3px;
}

.report-pill i,
.report-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.report-pill i {
  color: #6b7280;
  stroke-width: 2;
}

.report-wa {
  color: #25d366;
}

@media (max-width: 768px) {
  .report-page {
    padding: 24px 16px calc(var(--sk-tabbar-h, 58px) + 96px);
  }

  .report-copy {
    margin-bottom: 20px;
  }

  .report-copy h1 {
    font-size: 1.85rem;
    letter-spacing: -0.02em;
  }

  .report-lede {
    font-size: 0.9rem;
  }

  .report-card {
    padding: 20px 16px 18px;
  }

  .report-card .input-group input,
  .report-card .input-group textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .report-actions.form-actions {
    flex-wrap: wrap;
  }

  .report-actions .btn {
    flex: 1 1 auto;
    min-height: 44px;
  }
}
