/* 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; display: inline-block; width: 1rem; height: 1.2rem; vertical-align: -.15rem; }
.eud-term { color: #1B2540 !important; text-decoration: none; overflow-wrap: anywhere; }
.eud-term:hover, .eud-term:focus-visible { color: #2A4FD0 !important; text-decoration: underline; }
.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::before { border-left-color: #2A4FD0; }
.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: .75rem .5rem 1.25rem 1.6rem; background: #FAFBFD; border-top: 0; }
/* each act's definition its own block (owner 2026-11-10: they ran into each other): the head line, the
   "possibly a different concept" line, the text or diff and its legend belong together */
.eud-def { background: #fff; border: 1px solid #E2E6EF; border-radius: 8px; padding: .75rem 1rem .8rem;
  margin: 0 0 1.25rem; }
.eud-def:last-of-type { margin-bottom: .5rem; }
.eud-def p { margin: .2rem 0; }
.eud-def-head { font-size: 1.02rem; line-height: 1.45; padding-bottom: .45rem; margin-bottom: .5rem !important;
  border-bottom: 1px solid #EEF0F5; }
.eud-def-head a { font-weight: 700; color: #1B2540; }
.eud-def-head a:hover { color: #2A4FD0; }
.eud-def-head .eud-chip { margin-left: .2rem; font-size: .8rem; vertical-align: .1rem; }
.eud-def .eud-text, .eud-def .eud-diff { margin: .5rem 0 .35rem; }
.eud-def .eud-legend-note { font-size: .78rem; color: #6b7280; margin-top: .3rem; }
.eud-def .eud-legend-note del, .eud-def .eud-legend-note ins { font-size: inherit; }
.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: .6rem .4rem 1rem; }
  .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; }
}
/* round 2 (owner 2026-11-09): dates, other meanings, other groups */
.eud-date { color: #555; font-size: .85rem; white-space: nowrap; }
.eud-om { display: block; font-weight: 400; font-size: .8rem; color: #555; margin: .1rem 0 0 .9rem; }
.eud-also { display: block; font-weight: 400; font-size: .8rem; color: #555; }
.eud-groups { margin: 0 0 .6rem; font-size: .95rem; }
@media (max-width: 640px) { .eud-om { margin-left: .9rem; } }
/* round 5 (owner 2026-11-09): free to read, term pages, the extension note */
.eud-ext { background: #F2F5FD; border: 1px solid #D3DCF6; border-radius: 8px; padding: .6rem 1rem; margin: 0 0 1.2rem;
  max-width: 48rem; font-size: .95rem; }
.eud-ext p { margin: 0; }
.eud-crumbs { font-size: .9rem; color: #555; margin: 0 0 .4rem; }
.eud-termpage .eud-lead .eud-chip { margin: 0 .1rem .3rem 0; }
.eud-details { background: #F7F8FB; border: 1px solid #E8EBF2; border-radius: 8px; padding: 1rem 1rem .6rem; margin: 0 0 1.2rem; }
.eud-loading { color: #666; font-size: .9rem; }
/* round 6 (owner 2026-11-09): letter pages and the search over every term of a big group */
.eud-letters { display: flex; flex-wrap: wrap; gap: .2rem; margin: 1.2rem 0 .3rem; }
.eud-letters a { min-width: 1.9em; padding: .15rem .3rem; text-align: center; border: 1px solid #d5dae6; border-radius: 4px;
  text-decoration: none; font-weight: 600; font-size: .9rem; }
.eud-letters a[aria-current="page"] { background: #1B2540; border-color: #1B2540; color: #fff; }
.eud-letter-note { font-size: .9rem; color: #555; margin: 0; }
.eud-f-q { position: relative; }
.eud-suggest { position: absolute; top: 100%; left: 0; z-index: 5; min-width: 100%; width: max-content; max-width: min(28rem, 90vw);
  list-style: none; margin: .2rem 0 0; padding: .25rem 0; background: #fff; border: 1px solid #c4cad8; border-radius: 6px;
  box-shadow: 0 6px 18px rgba(27, 37, 64, .12); }
.eud-suggest a { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem .7rem; text-decoration: none; color: #1B2540; }
.eud-suggest a:hover, .eud-suggest a:focus { background: #F2F5FD; outline: none; }
.eud-suggest .eud-n { width: auto; color: #666; font-size: .85rem; }
.eud-group-more { display: inline; }
.eud-group-more summary { display: inline; cursor: pointer; color: #2A4FD0; }
/* own wording that may be a different concept (API 779196b) */
.eud-dc-mark { display: inline-block; font-weight: 700; color: #85580a; cursor: help; }
.eud-chip[data-dc="1"] { border-style: dotted; border-width: 2px; }
.eud-dc-note { color: #6b4708; background: #FDF6E7; border-radius: 4px; padding: .2rem .45rem; }
@media (max-width: 640px) {
  .eud-details { padding: .75rem .6rem .4rem; }
  .eud-def { padding: .65rem .75rem .7rem; margin-bottom: 1rem; }
  .eud-def .eud-text, .eud-def .eud-diff { padding-left: .6rem; }
}
/* the labels filter (owner 2026-11-10): a button opening a list of checkboxes */
.eud-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eud-f-labels { position: relative; display: flex; flex-direction: column; gap: .2rem; }
.eud-labels-btn { font: inherit; text-align: left; min-width: 11rem; padding: .3rem 1.8rem .3rem .5rem; border: 1px solid #c4cad8;
  border-radius: 4px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23555' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .55rem center / .65rem; color: #1b1b1b; cursor: pointer; }
.eud-labels-btn:focus-visible { outline: 2px solid #2A4FD0; outline-offset: 1px; }
.eud-labels-list { position: absolute; top: 100%; left: 0; z-index: 6; margin: .25rem 0 0; padding: .5rem .75rem; min-width: 15rem;
  background: #fff; border: 1px solid #c4cad8; border-radius: 6px; box-shadow: 0 6px 18px rgba(27, 37, 64, .12); }
.eud-labels-list label { display: flex; align-items: center; gap: .45rem; padding: .25rem 0; cursor: pointer; }
.eud-hint { margin: .35rem 0 0; font-size: .8rem; color: #555; max-width: 15rem; }
/* term pages: the labels as toggles */
.eud-toggles { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0 0 1rem; font-size: .9rem; }
.eud-toggles .eud-f-title { color: #555; margin-right: .2rem; }
.eud-toggle-chip { font: inherit; font-size: .85rem; padding: .15rem .6rem; border: 1px solid #c9d2ea; border-radius: 999px;
  background: #fff; color: #1B2540; cursor: pointer; }
.eud-toggle-chip[aria-pressed="true"]::before { content: "✓ "; }
.eud-toggle-chip[aria-pressed="false"] { opacity: .6; text-decoration: line-through; }
.eud-toggle-chip:focus-visible { outline: 2px solid #2A4FD0; outline-offset: 1px; }
@media (max-width: 640px) {
  .eud-labels-list { left: 0; right: 0; min-width: 0; }
  .eud-f-labels, .eud-labels-btn { width: 100%; }
}
/* the search across letters (owner 2026-11-10) */
.eud-letters-search { padding: .15rem .5rem; border-radius: 4px; background: #1B2540; color: #fff; font-weight: 600; font-size: .9rem; }
/* /definitions/ (redesigned 2026-11-10): search and language, the groups as compact cards, the combined table */
.eud-index h1 { margin-bottom: .4rem; }
.eud-index .eud-lead { font-size: 1.05rem; margin-bottom: 1.2rem; }
.eud-index-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem 1.5rem; margin: 0 0 1rem; }
.eud-index-search { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; flex: 1 1 22rem; max-width: 36rem; }
.eud-index-search label, .eud-index-lang label { width: 100%; font-size: .9rem; font-weight: 600; color: #1B2540; }
.eud-index-search .eud-f-q { flex: 1 1 12rem; }
.eud-index-search input[type="search"], .eud-index-lang select { font: inherit; width: 100%; padding: .4rem .6rem;
  border: 1px solid #c4cad8; border-radius: 6px; background: #fff; }
.eud-index-search input[type="search"]:focus, .eud-index-lang select:focus { outline: 2px solid #2A4FD0; outline-offset: 1px; border-color: #2A4FD0; }
.eud-index-search .eureka-lex-button { border: 0; font: inherit; cursor: pointer; padding: .4rem 1.1rem; }
.eud-index-search .eureka-lex-button:focus-visible { outline: 2px solid #1B2540; outline-offset: 2px; }
.eud-index-lang { display: flex; flex-wrap: wrap; gap: .4rem; flex: 0 1 14rem; }
.eud-example { margin: 0 0 1.6rem; color: #444; font-size: .95rem; }
.eud-index-h { margin: 1.4rem 0 .8rem; }
.eud-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.eud-card { display: flex; flex-direction: column; border: 1px solid #E2E6EF; border-radius: 8px; padding: .9rem 1rem .8rem; background: #fff; }
.eud-card h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.eud-card h3 a { color: #1B2540; text-decoration: none; }
.eud-card h3 a:hover, .eud-card h3 a:focus-visible { color: #2A4FD0; text-decoration: underline; }
.eud-card-desc { margin: 0 0 .6rem; font-size: .9rem; color: #444; }
.eud-card-facts { display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin: 0 0 .5rem; font-size: .88rem; color: #555;
  font-variant-numeric: tabular-nums; }
.eud-card-facts strong { color: #1B2540; font-size: 1rem; }
.eud-card-acts { margin: 0 0 .7rem; font-size: .85rem; color: #555; }
.eud-card-open { margin: auto 0 0; }
.eud-card-open a { font-weight: 600; }
.eud-card-note { display: block; font-size: .8rem; color: #6b7280; }
.eud-combined { margin: 1.6rem 0 0; padding: .9rem 1rem; border: 1px solid #D3DCF6; border-radius: 8px; background: #F2F5FD; }
.eud-combined h2 { margin: 0 0 .3rem; font-size: 1.1rem; }
.eud-combined p { margin: 0 0 .4rem; font-size: .92rem; color: #444; }
@media (max-width: 640px) {
  .eud-cards { grid-template-columns: 1fr; }
  .eud-index-search, .eud-index-lang { flex: 1 1 100%; max-width: none; }
}
