/* The "Cite this" button and its popover (public/app/cite.js builds the
 * markup this styles). Linked directly by each of the five pages that carry
 * a Cite button -- org.html, bill.html, person.html, clinics.html,
 * federal.html -- the same explicit-<link> convention app/skeleton.css
 * already uses (unlike tdi-nav.css/palette.css, this is not on every page).
 * Colour: only the shared tokens.css tokens.
 */

.tdi-cite-btn, .tdi-cite-btn * { box-sizing: border-box; }

.tdi-cite-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 12px;
  background: var(--panel2);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
.tdi-cite-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.tdi-cite-btn[aria-expanded="true"] {
  color: var(--gold);
  border-color: var(--gold);
}
.tdi-cite-btn[hidden] {
  display: none !important;
}
.tdi-cite-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.tdi-cite-panel {
  margin: 8px 0;
  padding: 10px 12px;
  max-width: 520px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.tdi-cite-panel[hidden] {
  display: none !important;
}
.tdi-cite-row + .tdi-cite-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.tdi-cite-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 3px;
}
.tdi-cite-text {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.45;
  word-break: break-word;
}
.tdi-cite-short,
.tdi-cite-enacted {
  font-size: 11px;
  color: var(--faint);
}
.tdi-cite-copy {
  min-height: 24px;
  padding: 4px 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 11.5px;
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
}
.tdi-cite-copy:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.tdi-cite-copy:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.tdi-cite-status {
  margin: 8px 0 0;
  color: var(--pro);
  font-size: 11.5px;
}
.tdi-cite-status:empty {
  margin: 0;
}

.tdi-vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
