/* A proposal's correlation table (templates/frontend/lex/correlation.html, frontend/views_correlation.py). The law and
   the Commission's table in the reader's serif; Eureka's own words (filters, notes) in the UI font; a curator's note
   set apart (left rule, tinted), a draft dashed. Under 760px each article is a card, its cells labelled. */
.eureka-corr { max-width: 72rem; margin: 0 auto; padding: 1.2rem 1rem 2.5rem; }
.eureka-corr h1 { font-size: 1.7rem; line-height: 1.25; margin: .2rem 0 .4rem; }
.eureka-corr h2 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
.eureka-corr a { color: #2A4FD0; }
.eureka-corr-lead { margin: 0 0 .4rem; }
.eureka-corr-source, .eureka-corr-counts, .eureka-corr-raw, .eureka-corr-filters, .eureka-corr-tabs, .eureka-corr-messages,
.eureka-corr-note-by, .eureka-corr-edit, .eureka-corr-new, .eureka-corr-unlinked, .eureka-corr-blank {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.eureka-corr-source { font-size: .85rem; color: #555; margin: 0 0 1rem; }
.eureka-corr-counts, .eureka-corr-raw { font-size: .85rem; color: #555; }
.eureka-corr-messages { list-style: none; padding: .5rem .8rem; margin: 0 0 1rem; background: #eef3ff; border-radius: 6px; font-size: .9rem; }
.eureka-corr-messages .is-error { color: #a01818; }
.eureka-corr-tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin: 1rem 0 .6rem; border-bottom: 1px solid #d8dbe4; }
.eureka-corr-tabs a { padding: .45rem .8rem; text-decoration: none; color: #1B2540; border-bottom: 3px solid transparent; font-weight: 600; font-size: .95rem; }
.eureka-corr-tabs a[aria-current] { border-bottom-color: #2A4FD0; color: #2A4FD0; }
.eureka-corr-filters { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; font-size: .9rem; margin: 0 0 .6rem; }
.eureka-corr-filters select, .eureka-corr-filters input[type=search] { font: inherit; padding: .25rem .4rem; margin-left: .3rem; }
.eureka-corr-part { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 600; }
.eureka-corr-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.eureka-corr-table th, .eureka-corr-table td { text-align: left; vertical-align: top; padding: .4rem .5rem; border-bottom: 1px solid #e6e8ee; }
.eureka-corr-table thead th { font: 600 .85rem/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; color: #1B2540; background: #f4f6fa; position: sticky; top: 0; z-index: 1; }
.eureka-corr-table tbody th { font-weight: 400; width: 34%; }
.eureka-corr-heading { display: block; color: #444; font-size: .88rem; }
.eureka-corr-side { display: inline-block; margin-top: .15rem; font: 600 .8rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; text-decoration: none; }
.eureka-corr-none { color: #8a8f9c; }
.eureka-corr-blank, .eureka-corr-unlinked { color: #8a6d00; font-size: .8rem; }
.eureka-corr-from { color: #555; font-size: .88rem; }
.eureka-corr-new { display: inline-block; padding: 0 .45rem; border-radius: 999px; background: #e7f6ec; color: #17603a; border: 1px solid #b9e2c7; font-size: .72rem; font-weight: 600; vertical-align: .1em; }
.eureka-corr-reverse tr.is-missing th a { color: #5b6170; }
.eureka-corr-note-row td { border-bottom: 1px solid #e6e8ee; padding-top: 0; }
.eureka-corr-note { margin: .3rem 0 .4rem; padding: .5rem .8rem; border-left: 4px solid #6b7fd6; background: #f5f7ff; border-radius: 0 6px 6px 0; }
.eureka-corr-note.is-draft { border-left-style: dashed; background: #fffaf0; border-left-color: #c79a1e; }
.eureka-corr-note-by { margin: 0 0 .2rem; font-size: .8rem; color: #3c4565; font-weight: 600; }
.eureka-corr-note-text p { margin: .25rem 0; }
.eureka-corr-intro .eureka-corr-note { margin: 0 0 1rem; }
.eureka-corr-edit { font-size: .88rem; margin: .2rem 0 .5rem; }
.eureka-corr-edit summary { cursor: pointer; color: #2A4FD0; }
.eureka-corr-edit textarea { display: block; width: 100%; box-sizing: border-box; font: .95rem/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; margin: .4rem 0 .2rem; }
.eureka-corr-edit fieldset { border: 0; padding: 0; margin: .3rem 0 .5rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.eureka-corr-edit-help { color: #666; font-size: .8rem; margin: 0; }
/* a cell whose language versions differ (correlation.apply_evidence): a small note that opens to the wordings */
.eureka-corr-differ { font: .78rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; color: #8a6d00; margin: .15rem 0 0; }
.eureka-corr-differ summary { cursor: pointer; }
.eureka-corr-wording { display: block; color: #3c4565; margin: .15rem 0 0 .9rem; }
.eureka-corr [hidden] { display: none !important; }
@media (max-width: 760px) {
  .eureka-corr { padding: 1rem 16px 2rem; }
  .eureka-corr h1 { font-size: 1.4rem; }
  .eureka-corr-table thead { display: none; }
  .eureka-corr-table, .eureka-corr-table tbody, .eureka-corr-table tr, .eureka-corr-table th, .eureka-corr-table td { display: block; width: auto; }
  .eureka-corr-table > tbody { border: 1px solid #e0e3ea; border-radius: 8px; margin: 0 0 .7rem; padding: .2rem 0; }
  .eureka-corr-reverse > tbody, .eureka-corr-part-b > tbody { border: 0; }
  .eureka-corr-reverse tr, .eureka-corr-part-b tr { border: 1px solid #e0e3ea; border-radius: 8px; margin: 0 0 .5rem; }
  .eureka-corr-table th, .eureka-corr-table td { border: 0; padding: .25rem .7rem; }
  .eureka-corr-table tbody th { width: auto; font-size: 1rem; }
  .eureka-corr-table td[data-label]::before { content: attr(data-label); display: block; font: 600 .72rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; color: #5b6170; }
}
/* the side-by-side view (templates/frontend/lex/correlation_side.html): two panes, each a frame scrolling on its own;
   under 760px one at a time, the toggle choosing (lex/correlation-side.js; without it both, one under the other) */
.eureka-side { max-width: none; }
.eureka-side > :not(.eureka-side-panes) { max-width: 72rem; margin-left: auto; margin-right: auto; }
.eureka-side-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; font: .9rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
.eureka-side-step a { margin-left: 1rem; }
.eureka-side-step a:first-child { margin-left: 0; }
.eureka-side-heading { margin: 0 0 .6rem; color: #444; }
.eureka-side-rows { margin: .4rem 0 .6rem; }
.eureka-side-rows summary, .eureka-side-help, .eureka-side-terms, .eureka-side-toggle, .eureka-side-pane-head, .eureka-side-pair, .eureka-side-box, .eureka-side-pairs {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.eureka-side-rows summary { cursor: pointer; color: #2A4FD0; font-size: .9rem; }
.eureka-side-rows .eureka-corr-table { margin-top: .4rem; }
.eureka-side-tab-parts { font-weight: 400; color: #555; font-size: .85rem; }
.eureka-side-terms { font-size: .88rem; margin: .4rem auto .6rem; padding: .5rem .8rem; border: 1px solid #e0e3ea; border-radius: 8px; }
.eureka-side-terms h2 { font-size: .95rem; margin: 0 0 .2rem; }
.eureka-side-terms ul { list-style: none; margin: .3rem 0; padding: 0; }
.eureka-side-terms li { margin: .25rem 0; }
.eureka-side-term { font-weight: 600; }
.eureka-side-label { color: #5b6170; margin: 0 .4rem; }
.eureka-side-terms li.is-own_wording .eureka-side-label { color: #b25e09; }
.eureka-side-diff { display: block; color: #333; margin: .1rem 0 0 .9rem; }
.eureka-side-diff del { color: #a01818; }
.eureka-side-diff ins { color: #17603a; }
.eureka-side-help { font-size: .8rem; color: #666; margin: .2rem 0; }
.eureka-side-toggle { display: none; }
.eureka-side-panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; max-width: 110rem; margin: .6rem auto 0; }
.eureka-side-pane { min-width: 0; display: flex; flex-direction: column; border: 1px solid #d8dbe4; border-radius: 8px; overflow: hidden; background: #fff; }
.eureka-side-pane-head { padding: .45rem .8rem; background: #f4f6fa; border-bottom: 1px solid #e0e3ea; font-size: .9rem; display: flex; flex-wrap: wrap; gap: .2rem .5rem; align-items: baseline; }
.eureka-side-act { font-weight: 600; color: #1B2540; }
.eureka-side-pair { margin: 0; padding: .35rem .8rem; background: #f5f7ff; border-bottom: 1px solid #e0e3ea; font-size: .85rem; color: #3c4565; }
.eureka-side-pair.is-draft { background: #fffaf0; }
.eureka-side-frame { display: block; width: 100%; height: calc(100vh - 9rem); min-height: 26rem; border: 0; }
.eureka-side-box { padding: .8rem; font-size: .92rem; color: #3c4565; }
.eureka-side-box.is-new { background: #f3fbf6; border: 1px solid #b9e2c7; border-radius: 8px; margin: .6rem auto; max-width: 46rem; box-sizing: border-box; }
.eureka-side-panes.is-single { grid-template-columns: minmax(0, 1fr); max-width: 46rem; }
.eureka-side-pane.is-boxed { align-self: start; }
.eureka-side-cell { font-family: Georgia, "Times New Roman", serif; }
.eureka-side-pairs { margin-top: 1rem; }
.eureka-side-pairs ul { padding-left: 1.1rem; }
.eureka-side-pairs label { display: block; margin: .3rem 0; }
.eureka-side-pairs input[type=text] { font: inherit; padding: .2rem .35rem; width: 100%; max-width: 24rem; box-sizing: border-box; }
.eureka-side-inline { display: inline; }
.eureka-side-inline button { font: inherit; font-size: .8rem; margin-left: .3rem; }
@media (max-width: 760px) {
  .eureka-side-panes { grid-template-columns: minmax(0, 1fr); }
  .eureka-side.has-toggle .eureka-side-toggle { display: flex; padding: .4rem 0; gap: .4rem; }
  .eureka-side-toggle button { flex: 1 1 0; min-width: 0; min-height: 44px; font: 600 .9rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; border: 1px solid #c9cedb; background: #fff; color: #1B2540; border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 .5rem; }
  .eureka-side-toggle button[aria-pressed="true"] { background: #2A4FD0; border-color: #2A4FD0; color: #fff; }
  .eureka-side.has-toggle[data-show="proposal"] .eureka-side-pane[data-pane="directive"],
  .eureka-side.has-toggle[data-show="directive"] .eureka-side-pane[data-pane="proposal"] { display: none; }
  .eureka-side-frame { height: calc(100vh - 7.5rem); min-height: 22rem; }
  .eureka-side-step a { margin-left: .6rem; }
}
