/* "Cite this" box on the data pages (src/features/aid/cite.js): quiet, small type, CUPA purples. */
.cite-box { max-width: 52rem; margin: 0 0 var(--s-3); border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-size: 0.86rem; color: var(--text); }
.cite-box > summary { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.7rem 1rem; cursor: pointer; list-style: none; }
.cite-box > summary::-webkit-details-marker { display: none; }
.cite-box > summary::before { content: ''; flex: 0 0 auto; width: 0.45rem; height: 0.45rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-0.12rem) rotate(-45deg); transition: transform 0.15s ease; color: var(--accent, #6E42A6); }
.cite-box[open] > summary::before { transform: translateY(-0.2rem) rotate(45deg); }
.cite-box-label { font-weight: 700; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.cite-box-hint { color: var(--muted); font-size: 0.82rem; }
.cite-box-body { padding: 0 1rem 0.9rem; border-top: 1px solid var(--line); }
.cite-row { padding: 0.7rem 0 0.2rem; }
.cite-row-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.3rem; }
.cite-row-name { font-weight: 600; font-size: 0.8rem; color: var(--muted); }
.cite-copy { font: inherit; font-size: 0.78rem; font-weight: 600; padding: 0.2rem 0.7rem; border: 1px solid var(--accent, #6E42A6); border-radius: 4px; background: transparent; color: var(--accent-dark, #4E2C80); cursor: pointer; min-height: 32px; }
.cite-copy:hover { background: var(--accent, #6E42A6); color: #fff; }
.cite-copy:focus-visible { outline: 2px solid var(--accent, #6E42A6); outline-offset: 2px; }
.cite-text { margin: 0; line-height: 1.55; overflow-wrap: anywhere; user-select: all; }
.cite-bib { margin: 0; padding: 0.6rem 0.75rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.76rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--mist); border-radius: 4px; color: var(--text); }
.cite-note { margin: 0.6rem 0 0; font-size: 0.76rem; color: var(--muted); }
:root[data-theme="dark"] .cite-box-label { color: #E6DDF5; }
:root[data-theme="dark"] .cite-copy { color: #D6C6F0; border-color: #9A7BCB; }
:root[data-theme="dark"] .cite-copy:hover { background: #6E42A6; color: #fff; }
:root[data-theme="dark"] .cite-bib { background: rgba(255, 255, 255, 0.05); }
@media print { .cite-copy { display: none; } }
