/* Reference catalogues: only what the shared components do not cover (the initials navigation, the notes, lists and
   disclaimer of the provenance blocks). Page header, toolbar, tables, facts, figures, alerts, fields and the empty
   state come from components.css (task 044 removed the local copies); colours come from theme roles, never literals. */
.reference-letters { display: flex; flex-wrap: wrap; gap: var(--ph-space-05); margin: 0 0 var(--space-2); }
.reference-letters a, .reference-letters span { display: inline-flex; align-items: center; justify-content: center; min-width: var(--ph-control-h-compact); min-height: var(--ph-control-h-compact); padding: 0 var(--space-1); border-radius: var(--radius-s); font-weight: 400; }
.reference-letters a { text-decoration: none; }
.reference-letters a:hover { background: var(--surface-2); }
.reference-letters [aria-current] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.reference-letters [aria-disabled] { color: var(--ink-2); }
.reference-source-status { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin: 0 0 var(--space-3); padding: 0; list-style: none; color: var(--ink-2); font-size: var(--ph-text-sm); }
.reference-prose p { max-width: var(--ph-measure); }
.reference-note { color: var(--ink-2); font-size: var(--ph-text-sm); margin-inline: var(--space-1); }
.reference-list, .reference-links, .reference-sources { margin: 0; padding-left: var(--space-3); }
.reference-links > li, .reference-sources > li { padding-block: var(--ph-space-05); }
/* A source is often a long address with no space: it breaks anywhere, so the column never reaches past a phone (045 review round 2). */
.reference-links a, .reference-sources a { overflow-wrap: anywhere; }
.reference-disclaimer { max-width: var(--ph-measure); color: var(--ink-2); font-size: var(--ph-text-sm); }
.reference-result { margin-top: var(--space-3); }
/* Design «Segnale»: one table per page with a section row per initial or ambit and fixed columns, so the columns line up
   from A to Z; a description on one line (whole in its tooltip); the sources of a merged entry as short badges; the
   initials stay in sight while the list scrolls; an initial with no entry is greyed out. */
.reference-entries, .reference-hub-table { table-layout: fixed; width: 100%; }
.reference-col-entry { width: 16rem; }
.reference-col-source { width: 11rem; }
.reference-col-num, .reference-hub-count { width: 9rem; }
.reference-summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table .table-section th { padding-block: var(--space-2) var(--space-1); background: var(--surface-2); color: var(--ink); font-size: var(--ph-text-md); font-weight: 700; }
.reference-source-badge { display: inline-flex; align-items: center; min-height: 1.5rem; padding: 0 var(--space-1); border-radius: var(--radius-s); background: var(--surface-2); color: var(--ink); font-size: var(--ph-text-sm); text-decoration: none; white-space: nowrap; }
.reference-source-badge:hover { background: var(--accent-subtle-bg); }
.reference-letters { position: sticky; top: 0; z-index: 2; padding-block: var(--ph-space-05); background: var(--bg); }
.reference-letters [aria-disabled] { color: var(--ink-3); }
.reference-meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin: 0 0 var(--space-3); color: var(--ink-2); font-size: var(--ph-text-sm); }
.reference-meta > div { display: flex; gap: var(--ph-space-05); }
.reference-meta dt::after { content: ":"; }
.reference-meta dd { margin: 0; color: var(--ink); }
.reference-entry .reference-prose p, .reference-entry .page-header { max-width: var(--ph-measure); }
.reference-source-line { margin: var(--space-3) 0 var(--space-1); color: var(--ink-2); font-size: var(--ph-text-sm); }
.reference-more .reference-provenance { box-shadow: none; padding: 0; }
@media (max-width: 40rem) {
  .reference-entries, .reference-hub-table { table-layout: auto; }
  .reference-entries col, .reference-hub-table col { width: auto; }
  .reference-summary { white-space: normal; }
}
