/* Compliance Wiki — components specific to this system.
   Loaded after the shared Meridian theme, which provides the palette and the page shell. */

:root { --accent: var(--brand); }

.wiki { max-width: 820px; }

/* ---------- search ---------- */

.search-form { display: flex; gap: 8px; margin-bottom: 26px; max-width: 620px; }
.search-form input[type=text] { flex: 1; }

.search-form button {
  flex: 0 0 auto;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius);
}

.search-form button:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

/* ---------- entries ---------- */

.result-card, .not-found, .stolen-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}

.result-card .topic-name {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
}

.result-card .definition { margin: 0; line-height: 1.65; }

.not-found { border-left-color: var(--warn); color: var(--ink-2); }

/* ---------- topic tags ---------- */

.topics-hint { color: var(--muted); font-size: 12px; margin: 0 0 8px; }
.topics-list { display: flex; flex-wrap: wrap; gap: 6px; }

.topic-tag {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 12px;
  color: var(--ink-2);
  text-decoration: none;
}

.topic-tag:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- /stolen ---------- */

.stolen-hint { color: var(--muted); margin: 0 0 16px; max-width: 68ch; }
.stolen-box { font-family: var(--mono); font-size: 12.5px; word-break: break-all; line-height: 1.7; }
.stolen-box.empty { color: var(--muted); border-left-color: var(--line-strong); }
.stolen-box.filled { border-left-color: var(--ok); }

/* ---------- report widget ---------- */

.report-widget { position: fixed; bottom: 18px; right: 18px; z-index: 60; }

.report-toggle {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--brand-dark);
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px -12px rgba(15, 30, 46, .6);
}

.report-toggle:hover { background: var(--brand-dark); }

.report-panel {
  width: min(420px, calc(100vw - 44px));
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -20px rgba(15, 30, 46, .6);
  padding: 16px 18px;
}

.report-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}

.report-close {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}

.report-close:hover { color: var(--ink); }

.report-panel label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.report-panel input[type=url] {
  width: 100%;
  font: inherit;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 8px 10px;
  margin-bottom: 10px;
  outline: none;
}

.report-panel input[type=url]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 79, 140, .14);
}

.report-submit {
  width: 100%;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  padding: 8px;
  border-radius: var(--radius);
}

.report-submit:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.report-status { font-size: 12px; color: var(--muted); margin: 8px 0 0; min-height: 1em; }
