/*!
 * New Practice Intel — styles for the national backend integration.
 *
 * Appended as a separate file so styles.css (already deployed and working) is
 * never rewritten. Only the components this branch adds are styled here:
 *   - the two-column coverage pair in the signal detail panel
 *   - the beta signup form
 *   - the data-source status label
 *   - the publication hold / cleared notices
 */

/* ---------------------------------------------------------------------------
 * Data-source status label on the map toolbar
 * --------------------------------------------------------------------------- */
.demo-label {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: #fef3c7;
  color: #92400e;
}

.demo-label--live {
  background: #d1fae5;
  color: #065f46;
}

.data-note {
  margin-top: 14px;
  padding: 10px 14px;
  border-left: 3px solid #0e776e;
  background: rgba(14, 119, 110, 0.06);
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
}

/* ---------------------------------------------------------------------------
 * The coverage pair — state tier and row evidence, deliberately side by side
 * --------------------------------------------------------------------------- */
.coverage-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

@media (max-width: 620px) {
  .coverage-pair { grid-template-columns: 1fr; }
}

.coverage-item {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
}

.coverage-key {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 4px;
}

.coverage-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.coverage-item small {
  display: block;
  font-size: 11.5px;
  line-height: 1.45;
  color: #6b7280;
}

/* Tier colours describe GEOGRAPHY. */
.coverage-tier--verified      { color: #065f46; }
.coverage-tier--beta          { color: #1d4ed8; }
.coverage-tier--candidate_only{ color: #92400e; }

/* Status colours describe THIS ROW. Same palette family so the distinction
   reads as two different questions, not one repeated label. */
.evidence-status--corroborated         { color: #065f46; }
.evidence-status--single_source        { color: #92400e; }
.evidence-status--unverified_candidate { color: #b45309; }
.evidence-status--rejected,
.evidence-status--retracted            { color: #b91c1c; }

/* ---------------------------------------------------------------------------
 * Publication notices
 * --------------------------------------------------------------------------- */
.publication-ok,
.publication-hold {
  margin: 10px 0 14px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
}

.publication-ok {
  background: #d1fae5;
  color: #065f46;
}

.publication-hold {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

/* ---------------------------------------------------------------------------
 * Beta signup form
 * --------------------------------------------------------------------------- */
.signup-form {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}

.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 700px) {
  .signup-grid { grid-template-columns: 1fr; }
}

.signup-field {
  display: block;
  margin-bottom: 16px;
}

.signup-field span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.signup-field em {
  color: #b91c1c;
  font-style: normal;
}

.signup-field input,
.signup-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: #ffffff;
  color: #111827;
  box-sizing: border-box;
}

.signup-field input:focus,
.signup-field textarea:focus {
  outline: 2px solid #0e776e;
  outline-offset: 1px;
  border-color: #0e776e;
}

.signup-field textarea {
  resize: vertical;
  min-height: 64px;
}

.signup-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.signup-note {
  font-size: 12.5px;
  color: #6b7280;
}

/* ---------------------------------------------------------------------------
 * Form status — one node, three states. Never shows success unless it is.
 * --------------------------------------------------------------------------- */
.form-status {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  border: 1px solid transparent;
}

.form-status--pending {
  background: #f3f4f6;
  color: #374151;
}

.form-status--success {
  background: #d1fae5;
  color: #065f46;
  border-color: #a7f3d0;
}

.form-status--error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}
