/* Definitions compared (frontend/views_definitions.py, templates/frontend/definitions/): on the reader's lean base
   (lex/base.html, lex.css), no Bootstrap. */
.eud { font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; max-width: 72rem; margin: 1.5rem auto 3rem;
  padding: 0 1rem; color: #1b1b1b; }
.eud [hidden] { display: none !important; }
.eud h1 { font-size: 1.8rem; line-height: 1.25; margin: 0 0 .5rem; color: #1B2540; }
.eud h2 { font-size: 1.15rem; margin: 2rem 0 .6rem; color: #1B2540; }
.eud a { color: #2A4FD0; }
.eud-lead { max-width: 48rem; color: #333; margin: 0 0 .8rem; }
.eud-langs { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 1.2rem; }
.eud-langs a { display: inline-block; min-width: 2.2em; padding: .15rem .35rem; text-align: center; font-size: .85rem;
  border: 1px solid #d5dae6; border-radius: 4px; text-decoration: none; }
.eud-langs a:hover { border-color: #2A4FD0; }
.eud-langs a[aria-current="page"] { background: #2A4FD0; border-color: #2A4FD0; color: #fff; }

.eud-signin { background: #F2F5FD; border: 1px solid #D3DCF6; border-radius: 8px; padding: .9rem 1.1rem; margin: 0 0 1.2rem;
  max-width: 48rem; }
.eud-signin p { margin: 0 0 .6rem; }
.eud-signin p:last-child { margin: 0; }

.eud-legend ul { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: .3rem 1.5rem; font-size: .92rem; color: #444; }
.eud-legend p { font-size: .92rem; color: #444; margin: .3rem 0 0; }

/* chips: an act and its label */
.eud-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.eud-chip { display: inline-flex; align-items: baseline; gap: .3rem; padding: .05rem .45rem; border: 1px solid #c9d2ea;
  border-radius: 999px; background: #fff; font-size: .85rem; line-height: 1.6; white-space: nowrap; }
.eud-chip a { text-decoration: none; font-weight: 600; }
.eud-chip a:hover { text-decoration: underline; }
.eud-tag, .eud-st { font-size: .75rem; color: #555; }
.eud-l-first { background: #2A4FD0; border-color: #2A4FD0; }
.eud-l-first a, .eud-l-first .eud-tag, .eud-l-first .eud-st { color: #fff; }
.eud-l-reference { background: #EEF2FC; border-color: #B9C7EF; }
.eud-l-partial_reference { background: #EEF2FC; border-color: #8FA3E3; border-style: dashed; }
.eud-l-same_wording { background: #EAF6EF; border-color: #A8D5B8; }
.eud-l-same_wording .eud-tag { color: #1e6b3c; }
.eud-l-own_wording { background: #FDF4E3; border-color: #E9C98A; }
.eud-l-own_wording .eud-tag { color: #85580a; }
.eud-chip.eud-s-proposal { border-style: dashed; border-width: 1.5px; }
.eud-chip.eud-s-repealed { opacity: .72; }
.eud-chip.eud-s-repealed .eud-st, .eud-chip.eud-s-proposal .eud-st { font-weight: 600; }
.eud-legend .eud-chip.eud-s-proposal, .eud-legend .eud-chip.eud-s-repealed { opacity: 1; }

/* filters */
.eud-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem 1rem; margin: 1.5rem 0 .8rem;
  padding: .8rem 1rem; background: #F7F8FB; border: 1px solid #E2E6EF; border-radius: 8px; font-size: .9rem; }
.eud-filters > label, .eud-f-status { display: flex; flex-direction: column; gap: .2rem; }
.eud-filters input[type="search"], .eud-filters select { font: inherit; padding: .3rem .45rem; border: 1px solid #c4cad8;
  border-radius: 4px; background: #fff; max-width: 100%; }
.eud-f-q input { width: 14rem; }
.eud-filters select { max-width: 16rem; }
.eud-f-status { border: 0; padding: 0; margin: 0; flex-direction: row; flex-wrap: wrap; gap: .2rem .8rem; }
.eud-f-status legend { padding: 0; margin-bottom: .2rem; width: 100%; }
.eud-f-status label, .eud-f-multi { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: .3rem; }
.eud-count { margin: 0 0 0 auto; color: #555; }

/* the table */
.eud-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.eud-table > thead th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: #666;
  border-bottom: 2px solid #E2E6EF; padding: .4rem .5rem; }
.eud-row > th, .eud-row > td { border-top: 1px solid #E8EBF2; padding: .45rem .5rem; vertical-align: top; text-align: left; }
.eud-row > th { width: 26%; font-weight: 600; }
.eud-n { text-align: right; width: 3.5rem; color: #555; font-variant-numeric: tabular-nums; }
.eud-toggle { all: unset; cursor: pointer; color: #1B2540; overflow-wrap: anywhere; }
.eud-toggle::before { content: ""; display: inline-block; width: 0; height: 0; margin: 0 .45rem .1rem 0;
  border-left: 5px solid #8A94AD; border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  transition: transform .15s; }
.eud-toggle[aria-expanded="true"]::before { transform: rotate(90deg); }
.eud-toggle:hover, .eud-toggle:focus-visible { color: #2A4FD0; text-decoration: underline; }
.eud-toggle:focus-visible { outline: 2px solid #2A4FD0; outline-offset: 2px; }
.eud-row:target > th, .eud-row:target > td { background: #FFF9E0; }
.eud-detail > td { padding: .2rem .5rem 1rem 1.6rem; background: #FAFBFD; border-top: 0; }
.eud-def { padding: .55rem 0; border-bottom: 1px dashed #E2E6EF; }
.eud-def:last-of-type { border-bottom: 0; }
.eud-def p { margin: .15rem 0; }
.eud-def-head a { font-weight: 600; }
.eud-def-head .eud-chip { margin-left: .2rem; }
.eud-as { color: #555; font-size: .9rem; }
.eud-note { font-size: .85rem; color: #555; }
.eud-text, .eud-diff { font: 1rem/1.55 Georgia, "Times New Roman", serif; margin: .35rem 0; padding: .1rem 0 .1rem .8rem;
  border-left: 3px solid #2A4FD0; overflow-wrap: anywhere; }
.eud-diff del { background: #FBE3E3; color: #8a1f1f; text-decoration: line-through; }
.eud-diff ins { background: #DDF3E4; color: #155a2e; text-decoration: none; }
.eud-note del { background: #FBE3E3; color: #8a1f1f; }
.eud-note ins { background: #DDF3E4; color: #155a2e; text-decoration: none; }
.eud-lock { margin: .5rem 0 0; font-size: .9rem; color: #444; }
.eud-lock::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: .35rem; vertical-align: -2px;
  background: #8A94AD; -webkit-mask: var(--eud-lock) center / contain no-repeat; mask: var(--eud-lock) center / contain no-repeat; }
.eud { --eud-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 7V5a4 4 0 1 1 8 0v2h.5A1.5 1.5 0 0 1 14 8.5v5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5v-5A1.5 1.5 0 0 1 3.5 7H4Zm1.5 0h5V5a2.5 2.5 0 0 0-5 0v2Z'/%3E%3C/svg%3E"); }
.eud-empty { padding: 1rem .5rem; color: #555; }

/* members */
.eud-members > p { max-width: 48rem; color: #444; font-size: .95rem; }
.eud-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.eud-mtable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.eud-mtable th, .eud-mtable td { text-align: left; padding: .4rem .5rem; border-top: 1px solid #E8EBF2; vertical-align: top; }
.eud-mtable thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: #666; border-top: 0;
  border-bottom: 2px solid #E2E6EF; }
.eud-mtable tbody th { font-weight: 600; }
.eud-mtable .eud-n { text-align: right; }
.eud-mtable td:nth-child(3) { white-space: nowrap; }
.eud-mtable tr.eud-s-repealed > * { color: #666; }
.eud-cov { font-weight: 600; }
.eud-cov-complete { font-weight: 400; }
.eud-cov-partial, .eud-cov-current_not_held { color: #85580a; }
.eud-cov-missing { color: #8a1f1f; }
.eud-cov-note { display: block; color: #555; font-size: .85rem; }
.eud-updated, .eud-more { font-size: .88rem; color: #555; }
.eud-group { border-top: 1px solid #E2E6EF; padding-top: .3rem; }
.eud-group-acts { color: #444; font-size: .92rem; }

@media (max-width: 640px) {
  .eud h1 { font-size: 1.45rem; }
  .eud-filters { padding: .7rem; }
  .eud-filters > label, .eud-f-q input, .eud-filters select { width: 100%; max-width: none; }
  .eud-count { margin: 0; }
  .eud-table, .eud-table > tbody, .eud-row, .eud-detail, .eud-row > th, .eud-row > td, .eud-detail > td { display: block; width: auto; }
  .eud-table > thead { display: none; }
  .eud-row { border-top: 1px solid #E8EBF2; padding: .45rem 0; }
  .eud-row > th, .eud-row > td { border: 0; padding: .1rem 0; }
  .eud-row > td.eud-n { display: none; }
  .eud-detail > td { padding: .2rem .6rem .8rem; }
  .eud-chip { white-space: normal; flex-wrap: wrap; column-gap: .3rem; row-gap: 0; border-radius: 10px; }
  .eud-mtable, .eud-mtable tbody, .eud-mtable tr, .eud-mtable th, .eud-mtable td { display: block; }
  .eud-mtable thead { display: none; }
  .eud-mtable tr { border-top: 1px solid #E8EBF2; padding: .45rem 0; }
  .eud-mtable tbody th, .eud-mtable td { border: 0; padding: 0; text-align: left; }
  .eud-mtable td { display: inline; }
  .eud-mtable td + td::before { content: " · "; color: #999; }
  .eud-mtable td.eud-n::after { content: " terms"; }
  .eud-mtable td:last-child::before { content: "Coverage: "; color: #555; }
  .eud-mtable td:last-child { display: block; }
}
