/* Adjudication of the FLoRA / Observatory disagreements — its own stylesheet, so
   the feature can be removed without touching style.css. Uses the site tokens. */

#admin-tab-disagreements { max-width: 1180px; }

.adj-head { padding: 1.4rem 0 1.1rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.1rem; }
.adj-kicker {
  margin: 0 0 0.3rem;
  color: var(--accent);
  font-size: 0.71rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.adj-head h2 { margin: 0; font: 500 clamp(1.5rem, 3vw, 2.1rem)/1.15 Georgia, "Times New Roman", serif; }
.adj-head p:not(.adj-kicker) { max-width: 760px; margin: 0.5rem 0 0; color: var(--muted); line-height: 1.6; }

.adj-card {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg-alt);
}
.adj-card p { margin: 0; }
.adj-card-failed { border-color: #e2b4a9; background: #fff1ed; color: #6e2d23; }
.adj-card-failed p { margin-top: 0.35rem; }
.adj-card-failed pre {
  margin: 0.7rem 0 0;
  padding: 0.6rem 0.75rem;
  background: rgba(0, 0, 0, 0.04);
  font: 0.75rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.adj-ready { display: flex; align-items: center; gap: 0.5rem; font-weight: 650; }
.adj-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--green); }

.adj-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  margin: 0.9rem 0 0;
  border: 1px solid var(--rule);
  background: var(--bg);
}
.adj-stats > div { padding: 0.65rem 0.85rem; }
.adj-stats > div + div { border-left: 1px solid var(--rule); }
.adj-stats dt { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; }
.adj-stats dd { margin: 0.2rem 0 0; font: 600 1.25rem/1.1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.adj-stats small { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.7rem; }
.adj-meta { margin-top: 0.75rem !important; color: var(--muted); font-size: 0.8rem; }

.adj-kinds { display: flex; flex-wrap: wrap; gap: 0.35rem 1.2rem; margin: 0.7rem 0 0; padding: 0; list-style: none; font-size: 0.82rem; color: var(--ink-soft); }
.adj-kinds b { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--ink); }

.adj-import { margin-top: 1rem; }
.adj-import h3 { margin: 0 0 0.35rem; font: 500 1.2rem/1.2 Georgia, "Times New Roman", serif; }
.adj-import a { color: var(--accent); overflow-wrap: anywhere; }
.adj-hint { margin-top: 0.45rem !important; color: var(--muted); font-size: 0.82rem; line-height: 1.55; }
.adj-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.adj-result { margin-top: 0.9rem; padding: 0.8rem 0.95rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--bg); font-size: 0.88rem; }
.adj-result.is-done { border-color: var(--green); }
.adj-result p { margin: 0; }

@media (max-width: 700px) {
  .adj-stats { grid-template-columns: 1fr 1fr; }
  .adj-stats > div + div { border-left: 0; }
  .adj-stats > div { border-top: 1px solid var(--rule); }
}

/* ---------- Validators: the judging screen ---------- */

/* The bar at the top of a Trusted or Senior validator's work area. Not a header
   button: the header has no room left, and one more pushed "Sign out" off it. */
.adj-validator-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
  padding: 0.5rem 0.6rem 0.5rem 1rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--bg-alt);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.adj-validator-bar b { color: var(--ink); }
.adj-bar-btn {
  padding: 0.35rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.adj-bar-btn:hover { background: var(--ink); color: var(--bg); }
.adj-bar-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Toasts sit under the site's overlays (z-index 100 against 200): lift them
   while one of these windows is open, so "+15 points" is seen. */
body:has(.adj-judge-overlay:not(.hidden)) #toast.show { z-index: 9600; }

.adj-judge-overlay { padding: 1.5rem 1rem; }
.adj-judge-panel { max-width: 1100px; }
.adj-judge-panel .faq-panel-header { gap: 1rem; }
.adj-judge-progress { margin-left: auto; color: var(--muted); font-size: 0.78rem; }
.adj-judge-panel:focus { outline: none; }
/* Long DOIs and links break rather than run off a phone's screen. */
.adj-judge-body { padding: 1.2rem 1.5rem 1.5rem; overflow-wrap: anywhere; }
.adj-judge-body .adj-table { overflow-wrap: break-word; }
.adj-notice {
  margin: 0 0 0.9rem;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--green);
  background: var(--bg-alt);
  font-size: 0.86rem;
}
.adj-confirm { margin-top: 0.8rem; padding: 0.7rem 0.85rem; border: 1px solid var(--accent-soft); border-radius: 8px; background: var(--bg); }
.adj-confirm p { margin: 0; font-size: 0.88rem; }
.adj-confirm .adj-actions { margin-top: 0.6rem; }
.adj-judge-message { padding: 1.5rem 0.5rem; }
.adj-judge-message h3 { margin: 0 0 0.4rem; font: 500 1.35rem/1.2 Georgia, "Times New Roman", serif; }
.adj-judge-message p { margin: 0 0 1rem; color: var(--ink-soft); }

.adj-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem; margin-bottom: 1rem; color: var(--muted); font-size: 0.85rem; }
.adj-chip {
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.adj-label {
  margin: 0.8rem 0 0.2rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.adj-label:first-child, .adj-side-name + .adj-label { margin-top: 0; }
.adj-small { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.78rem; overflow-wrap: anywhere; }
.adj-small a, .adj-judge-body a { color: var(--accent); }

.adj-rep h3 { margin: 0; font: 500 1.2rem/1.3 Georgia, "Times New Roman", serif; }
.adj-abstract {
  max-height: 13rem;
  overflow-y: auto;
  margin-top: 0.6rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg-alt);
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre-line;
}
.adj-no-abstract { margin-top: 0.5rem; }

.adj-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin: 1.1rem 0 0.4rem; }
.adj-side { padding: 0.9rem 1rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg-alt); min-width: 0; }
.adj-side-flora { border-top: 3px solid var(--green); }
.adj-side-mo { border-top: 3px solid var(--accent-soft); }
.adj-side-name { margin: 0 0 0.6rem; font-weight: 700; font-size: 0.95rem; }
.adj-original-title { margin: 0; font-weight: 550; line-height: 1.4; }
.adj-outcome { display: inline-block; font-weight: 650; }
.adj-outcome.is-none, .adj-none p { color: var(--muted); font-weight: 500; font-style: italic; }
.adj-none p { margin: 0; }
.adj-link-btn {
  margin-top: 0.25rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: underline;
  cursor: pointer;
}
.adj-quote {
  margin: 0.55rem 0 0;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--green);
  background: var(--bg);
  font-size: 0.86rem;
  line-height: 1.55;
}
.adj-why { margin-top: 0.7rem; font-size: 0.82rem; }
.adj-why summary { cursor: pointer; color: var(--ink-soft); font-weight: 600; }
.adj-why p { margin: 0.35rem 0 0; color: var(--ink-soft); }

.adj-q { margin: 1.1rem 0 0; padding: 0; border: 0; min-width: 0; }
.adj-q legend { margin-bottom: 0.5rem; font-weight: 700; }
.adj-options { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.adj-options + .adj-options { margin-top: 0.45rem; }
.adj-option {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 550;
  cursor: pointer;
}
.adj-options-quiet .adj-option { border-color: var(--rule); color: var(--ink-soft); font-size: 0.8rem; padding: 0.4rem 0.8rem; }
.adj-option:hover { border-color: var(--accent); }
.adj-option[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.adj-option:focus-visible, .adj-link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.adj-doi, .adj-note { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.7rem; font-size: 0.85rem; font-weight: 600; }
.adj-doi.hidden { display: none; }
.adj-doi input, .adj-note textarea {
  width: 100%;
  max-width: 34rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.adj-note { margin-top: 1.1rem; }
.adj-hint-inline { color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.adj-note textarea { max-width: none; resize: vertical; }
.adj-error { min-height: 1.2em; margin: 0.6rem 0 0; color: var(--red); font-size: 0.85rem; }
.adj-error:empty { min-height: 0; }

.adj-judge-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-top: 0.9rem; }
.adj-worth { margin-left: auto; color: var(--muted); font-size: 0.82rem; }

@media (max-width: 700px) {
  .adj-judge-overlay { padding: 0; }
  .adj-judge-body { padding: 1rem; }
  .adj-judge-progress { display: none; }
  .adj-sides { grid-template-columns: 1fr; }
  .adj-worth { margin-left: 0; flex-basis: 100%; order: -1; }
}

/* ---------- Admins: review, approve, publish ---------- */

.adj-records { margin-top: 1rem; }
.adj-records-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }
.adj-records-head h3 { margin: 0; font: 500 1.2rem/1.2 Georgia, "Times New Roman", serif; }
.adj-exports { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.82rem; }
.adj-download { color: var(--accent); font-weight: 600; }
.adj-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0 0.7rem; }
.adj-filter {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.adj-filter span { margin-left: 0.2rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--muted); }
.adj-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.adj-filter[aria-pressed="true"] span { color: var(--bg); }

.adj-table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 8px; background: var(--bg); }
.adj-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; overflow-wrap: break-word; }
.adj-table th {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.adj-table td { padding: 0.55rem 0.65rem; border-top: 1px solid var(--rule); vertical-align: top; }
.adj-table tbody tr:first-child td { border-top: 0; }
.adj-table small { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.74rem; overflow-wrap: anywhere; }
.adj-row-title { display: block; min-width: 14rem; font-weight: 600; line-height: 1.35; }
.adj-judges { margin: 0.3rem 0 0; padding: 0; list-style: none; }
.adj-judges li { margin-top: 0.15rem; }
.adj-muted { color: var(--muted); }
.adj-small-btn { padding: 0.35rem 0.8rem; font-size: 0.78rem; white-space: nowrap; }

.adj-badge {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
}
.adj-badge.is-agree, .adj-badge.is-flora { background: #e3ecdc; color: var(--green); }
.adj-badge.is-disagree { background: #f6e3cf; color: #8a4a12; }

.adj-status { margin-left: auto; font-weight: 650; color: var(--ink-soft); }
.adj-in-flora {
  margin: 0.9rem 0 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid #dfc79a;
  border-radius: 8px;
  background: #fbf3e2;
  font-size: 0.84rem;
}
.adj-in-flora p { margin: 0; }
.adj-in-flora ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.adj-judgements { margin-top: 0.3rem; }
.adj-next-btn { margin-left: auto; }

.adj-decision, .adj-decision-done, .adj-decision-note {
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg-alt);
}
.adj-decision-done.is-published { border-color: var(--green); }
.adj-decision h4 { margin: 0 0 0.3rem; font: 500 1.1rem/1.2 Georgia, "Times New Roman", serif; }
.adj-decision .adj-q { margin-top: 0.6rem; }
.adj-radio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; margin-top: 0.35rem; font-size: 0.88rem; cursor: pointer; }
.adj-radio small { color: var(--muted); }
.adj-radio input[type="text"] { margin-left: 0.3rem; padding: 0.3rem 0.5rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); font: inherit; min-width: 14rem; }
.adj-mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.82rem; }
.adj-field { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.75rem; font-size: 0.85rem; font-weight: 600; }
.adj-field input, .adj-field select, .adj-field textarea {
  max-width: 40rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.adj-field textarea { resize: vertical; }
.adj-final { display: grid; gap: 0.35rem; margin: 0.6rem 0 0; font-size: 0.88rem; }
.adj-final > div { display: grid; grid-template-columns: 7rem 1fr; gap: 0.6rem; }
.adj-final dt { color: var(--muted); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; }
.adj-final dd { margin: 0; overflow-wrap: anywhere; }
.adj-problem { margin: 0.7rem 0 0; padding: 0.5rem 0.7rem; border-left: 3px solid var(--amber); background: var(--bg); font-size: 0.85rem; }
.adj-decision-done > p:first-child { margin: 0; }

@media (max-width: 760px) {
  .adj-next-btn { display: inline-flex; }
  .adj-final > div { grid-template-columns: 1fr; gap: 0.1rem; }
  .adj-row-title { min-width: 10rem; }
}
