/* Rules & Statutes library — sibling of authority-library.css.
 *
 * The Rules pane REUSES the .al-* component classes from authority-library.css
 * (two-pane layout, accordion, detail, modal, form fields, upload progress) so
 * the two curation surfaces stay visually identical. This file only supplies:
 *   1. the panel-scoped --al-* design tokens for #panelRulesLibrary (the .al-*
 *      classes reference them), ALSO scoped to the body-mounted Add Rule modal
 *      backdrop so those tokens resolve there too;
 *   2. the verbatim-text display/edit styling unique to rules.
 */

/* (1) Panel + modal-backdrop scoped tokens — copied from authority-library.css
   so .al-* classes resolve identically here. */
#panelRulesLibrary,
#rlAddBackdrop {
  --al-pane-border: var(--border);
  --al-pane-bg: var(--white);
  --al-bg-info: #eaf2f9;
  --al-bg-warning: #FFF8E1;
  --al-bg-warning-soft: rgba(255, 200, 0, 0.08);
  --al-danger-bg: #FBEAEA;
  --al-danger-text: #8A1F1F;
  --al-danger-border: #E89595;
  --al-primary-bg: #1F3A2E;
  --al-primary-bg-hover: #284C3D;
  --al-amber-text: #5C4416;
  --al-amber-border: #E0B96B;
}

#panelRulesLibrary { padding: 0; max-width: none; margin: 0; }

/* (2) Verbatim full text — the field the drafter pulls. Monospace + pre-wrap so
   the curator sees exact whitespace/line breaks; scrollable so a long statute
   doesn't blow out the detail pane. */
.rl-fulltext {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--navy);
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--white);
  border: 1px solid var(--al-pane-border);
  border-radius: 3px;
  padding: 12px 14px;
  max-height: 460px;
  overflow-y: auto;
}

/* The editable Full Text textarea in the Add/Edit modal — monospace + tall so
   the curator can review and correct the raw extraction comfortably. */
.rl-fulltext-edit {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  min-height: 260px;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}

/* Verification provenance beside the source link (verified_by / verified_on). */
.rl-verif { font-size: 12px; color: var(--slate); white-space: nowrap; }
.rl-verif-no { color: #b45309; font-weight: 600; }
