:root {
  --bg: #fbfaf7; --surface: #ffffff; --text: #1d1c1a; --muted: #6b6760; --line: #e4e0d8;
  --accent: #1f5f8b; --accent-soft: #e6eff6; --mark: #fff0a8;
  --primary: #2f6b3a; --secondary: #8a5a00; --secondary-soft: #fbf0d9; --unverified: #a3312a; --unverified-soft: #fbe6e3;
  --person: #1f5f8b; --organization: #6b4c9a; --document: #3d3a35; --law: #8a5a00; --concept: #2f6b3a; --place: #a3312a; --event: #555;
  --radius: 6px; --gutter: 16px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161514; --surface: #1f1e1c; --text: #ebe8e2; --muted: #a39e94; --line: #34322e;
    --accent: #7db4dc; --accent-soft: #1d2b36; --mark: #5c4d0c;
    --primary: #8cc79a; --secondary: #e0b35c; --secondary-soft: #3a2f17; --unverified: #ef8a80; --unverified-soft: #3d1f1c;
    --person: #7db4dc; --organization: #b9a0e0; --document: #d6d2ca; --law: #e0b35c; --concept: #8cc79a; --place: #ef8a80; --event: #bbb;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1 { font: 600 1.8rem/1.2 var(--serif); margin: 0.2em 0 0.4em; }
h2 { font-size: 1.15rem; margin: 1.6em 0 0.5em; }
h3 { font-size: 0.95rem; margin: 1.2em 0 0.3em; }
code { font-size: 0.9em; background: var(--accent-soft); padding: 0 4px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.count { color: var(--muted); font-size: 0.85em; font-weight: normal; margin-left: 0.4em; }
mark { background: var(--mark); color: inherit; padding: 0 1px; border-radius: 2px; }
button, .button { font: inherit; font-size: 0.9rem; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: var(--radius); padding: 4px 10px; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .button:hover { border-color: var(--accent); }
.link-button { border: 0; background: none; color: var(--accent); padding: 0; text-decoration: underline; }
input[type="search"], input[type="number"] { font: inherit; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: var(--radius); padding: 6px 10px; }

/* header */
header.site { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
  padding: 10px var(--gutter); background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { font: 600 1.1rem var(--serif); color: var(--text); text-decoration: none; }
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.92rem; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a[aria-current] { color: var(--text); font-weight: 600; }
#top-search { margin-left: auto; }
#top-search input { width: 220px; max-width: 100%; }
main { max-width: 1180px; margin: 0 auto; padding: 20px var(--gutter) 64px; min-height: 100vh; } /* keeps the footer below the fold while a view loads */
main[aria-busy="true"] { opacity: 0.55; transition: opacity 0.2s 0.15s; }
main[aria-busy="true"]:has(.loading) { opacity: 1; }

/* chips and badges */
.badge { display: inline-block; font-size: 0.75rem; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
  margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.marker-secondary { color: var(--secondary); background: var(--secondary-soft); border-color: transparent; }
.marker-unverified { color: var(--unverified); background: var(--unverified-soft); border-color: transparent; }
.interpretive { color: var(--organization); border-color: var(--organization); }
.status-confirmed { color: var(--primary); border-color: var(--primary); }
.status-rejected { color: var(--unverified); border-color: var(--unverified); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ent { text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.ent-person { color: var(--person); } .ent-organization { color: var(--organization); } .ent-document { color: var(--document); }
.ent-law { color: var(--law); } .ent-concept { color: var(--concept); } .ent-place { color: var(--place); } .ent-event, .ent-voteevent { color: var(--event); }
.id-chip { font-size: 0.8rem; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-right: 6px; color: var(--muted); text-decoration: none; }
a.id-chip:hover { color: var(--accent); border-color: var(--accent); }

/* home */
.home h1 { font-size: 2.4rem; margin-top: 0.6em; }
.lede { font: 1.2rem/1.5 var(--serif); max-width: 46em; }
.big-search { display: flex; gap: 8px; margin: 24px 0 8px; max-width: 720px; }
.big-search input { flex: 1; font-size: 1.1rem; padding: 10px 14px; }
.big-search button { font-size: 1rem; padding: 0 18px; }
.examples { font-size: 0.92rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 32px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat-n { font: 600 1.6rem var(--serif); }

/* search */
.search-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.facets { position: sticky; top: 70px; font-size: 0.9rem; }
.facet ul { list-style: none; padding: 0; margin: 0; }
.facet li { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0; }
.facet a { text-decoration: none; }
.facet a.active { font-weight: 600; text-decoration: underline; }
.entity-hits { margin: 8px 0 16px; }
.small-heading { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 6px; }
.hit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 12px; }
.hit header { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.hit header .ent { font-weight: 600; }
.meta { color: var(--muted); font-size: 0.85rem; }
.hit-title { font-size: 0.92rem; margin-top: 2px; }
.passage { font: 0.95rem/1.55 var(--serif); margin: 8px 0 0; }
.page-link { font: 0.8rem var(--sans); white-space: nowrap; }

/* entity */
.eyebrow { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; color: var(--muted); margin: 0; }
.entity-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.ids { margin: 8px 0 0; }
.doc-panel { margin: 16px 0; }
.meta-grid { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 12px; }
.meta-grid dt { color: var(--muted); }
.meta-grid dd { margin: 0; }
.files { list-style: none; padding: 0; display: grid; gap: 6px; }
.fact-group h3 { border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.fact-list { list-style: none; padding: 0; margin: 0; }
.fact { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.fact.interpretive { border-left: 3px solid var(--organization); padding-left: 8px; }
.fact-main .date { color: var(--muted); font-size: 0.85rem; margin-left: 8px; }
.fact-main .value { color: var(--text); }
.fact-evidence { margin-top: 2px; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 0.8rem; }
.fact-evidence a { display: inline-block; padding: 3px 0; } /* 24 px touch targets */
.evidence { color: var(--muted); }
.evidence::before { content: "↳ "; }
.evidence.ocr { font-style: italic; }
.source { color: var(--muted); font-family: ui-monospace, monospace; font-size: 0.75rem; }
.rationale { margin: 2px 0; font-style: italic; }
.mention-list { list-style: none; padding: 0; columns: 2 280px; }
.mention-list li { break-inside: avoid; padding: 2px 0; }

/* reader */
.reader-bar { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 8px 0; font-size: 0.92rem; }
.pager { display: flex; gap: 12px; align-items: center; }
.pager input { width: 4.5em; padding: 2px 6px; }
.tabs { list-style: none; padding: 0; margin: 6px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 10px; text-decoration: none; font-size: 0.9rem; }
.tabs a[aria-current] { background: var(--accent-soft); border-color: var(--accent); }
.reader-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.page-text { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; min-width: 0; }
.page-text .text { white-space: pre-wrap; font: 0.98rem/1.6 var(--serif); overflow-wrap: anywhere; }
.page-text a.span { text-decoration: none; border-bottom: 2px solid color-mix(in srgb, currentColor 35%, transparent); color: inherit; }
.page-text a.span:hover { background: var(--accent-soft); }
.page-text a.span.auto { border-bottom-style: dotted; }
.page-text a.span.ref { border-bottom-color: var(--accent); }
.page-pdf iframe { width: 100%; height: 80vh; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.on-this-page { margin-top: 12px; }

/* lists */
.filter { width: 320px; max-width: 100%; margin: 4px 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg); } /* not sticky: inside .table-wrap (overflow-x) it would pin over the first row */
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
.sort { border: 0; background: none; padding: 0; font-weight: 600; color: var(--text); }
.event-list { list-style: none; padding: 0; }
.event-list li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.event-list .date { font-variant-numeric: tabular-nums; color: var(--muted); display: inline-block; min-width: 6.5em; }
.arena { margin: 0 8px 0 0; }

/* review */
.notice { background: var(--accent-soft); border-radius: var(--radius); padding: 8px 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 12px 0; font-size: 0.92rem; }
.filters a[aria-current] { font-weight: 600; color: var(--text); }
.review-list { padding-left: 1.4em; }
.review-group { margin-bottom: 16px; }
.review-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.actions { margin-left: auto; display: flex; gap: 6px; }
.samples { font: 0.9rem/1.5 var(--serif); color: var(--muted); margin: 4px 0; }
.samples mark { color: var(--text); }
.samples .page-link { white-space: normal; overflow-wrap: anywhere; }
.error { padding: 24px 0; }

@media (max-width: 760px) {
  .search-layout, .reader-body { grid-template-columns: 1fr; }
  .facets { position: static; display: flex; flex-wrap: wrap; gap: 0 24px; }
  .page-pdf iframe { height: 60vh; }
  header.site { position: static; }
  #top-search { margin-left: 0; width: 100%; }
  #top-search input { width: 100%; }
  .home h1 { font-size: 1.9rem; }
}

/* ---------- charts (palette validated with the dataviz validator against #ffffff / #1f1e1c) ---------- */
.viz-root {
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --neutral: #c3c2b7;
  --viz-grid: #ecebe6; --viz-axis: #c3c2b7; --viz-ink-2: #52514e; --viz-muted: #898781;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .viz-root {
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --neutral: #4a4945;
    --viz-grid: #2c2c2a; --viz-axis: #383835; --viz-ink-2: #c3c2b7; --viz-muted: #898781;
  }
}
:root[data-theme="dark"] .viz-root {
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --neutral: #4a4945;
  --viz-grid: #2c2c2a; --viz-axis: #383835; --viz-ink-2: #c3c2b7; --viz-muted: #898781;
}
.fill-s1 { fill: var(--series-1); } .fill-s2 { fill: var(--series-2); } .fill-s3 { fill: var(--series-3); } .fill-neutral { fill: var(--neutral); }
.stroke-s3 { stroke: var(--series-3); }
.viz-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 0; }
.timeline { display: block; font: 12px var(--sans); }
.timeline .grid { stroke: var(--viz-grid); stroke-width: 1; }
.timeline .lane-rule { stroke: var(--viz-axis); stroke-width: 1; }
.timeline .tick, .rc-bar .tick { fill: var(--viz-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.timeline .lane-label { fill: var(--text); font-weight: 600; font-size: 12px; }
.timeline .proc-label { fill: var(--viz-ink-2); font-size: 11px; }
.timeline .dot { stroke: var(--surface); stroke-width: 2; }
.timeline .link { fill: none; stroke-width: 2; stroke-linecap: round; }
.timeline .hit { fill: transparent; }
.timeline .hit-line { fill: none; stroke: transparent; stroke-width: 14; }
.timeline .mark { cursor: pointer; outline: none; }
.timeline .mark:hover .dot, .timeline .mark:focus .dot { stroke: var(--text); }
.timeline .mark:hover .proc, .timeline .mark:focus .proc { filter: brightness(1.15); }
.timeline .mark:hover .link, .timeline .mark:focus .link { stroke-width: 3; }
.viz-controls { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; text-decoration: none; font-size: 0.9rem; color: var(--text); }
.chip[aria-current] { background: var(--accent-soft); border-color: var(--accent); font-weight: 600; }
.viz-legend { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.875rem; color: var(--viz-ink-2); }
.viz-legend li { display: flex; align-items: center; gap: 6px; }
.key { display: inline-block; }
.key.dot { width: 10px; height: 10px; border-radius: 50%; }
.key.bar { width: 18px; height: 8px; border-radius: 0 4px 4px 0; }
.key.line { width: 18px; height: 2px; border-radius: 1px; }
.key.s1 { background: var(--series-1); } .key.s2 { background: var(--series-2); } .key.s3 { background: var(--series-3); } .key.neutral { background: var(--neutral); }
.viz-tip { position: absolute; z-index: 50; display: none; max-width: 320px; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 6px 10px; box-shadow: 0 4px 16px rgb(0 0 0 / 0.12); font-size: 0.85rem; pointer-events: none; }
.viz-tip strong { display: block; font-size: 0.95rem; }
.viz-tip span { display: block; color: var(--muted); }
.viz-tip small { display: block; margin-top: 4px; color: var(--muted); }
.lede-small { font: 1.05rem/1.5 var(--serif); max-width: 52em; }
.link-list li { margin-bottom: 12px; }
.proc-list { list-style: none; padding: 0; }
.proc-list li { padding: 4px 0; }
.button.primary { background: var(--accent); color: var(--surface); border-color: var(--accent); }

/* roll call */
.rc-chart { display: grid; gap: 10px; margin: 12px 0; max-width: 820px; }
.rc-row { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 12px; }
.rc-label { font-size: 0.9rem; text-align: right; }
.rc-bar { display: block; overflow: visible; }
.rc-bar .seg { outline: none; cursor: default; }
.rc-bar .seg:focus path, .rc-bar .seg:focus rect, .rc-bar .seg:hover path, .rc-bar .seg:hover rect { filter: brightness(1.12); }
.seg-label { font: 600 11px var(--sans); font-variant-numeric: tabular-nums; }
.seg-label.on-s1 { fill: #ffffff; } .seg-label.on-s2, .seg-label.on-s3, .seg-label.on-neutral { fill: #0b0b0b; }
.table-view { margin: 8px 0 16px; }
.deviators li { padding: 2px 0; }

/* procedure steps */
.steps { list-style: none; padding: 0; border-left: 2px solid var(--line); margin-left: 6px; }
.steps li { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 6px 0 6px 14px; position: relative; }
.steps li::before { content: ""; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.step-date { color: var(--muted); font-variant-numeric: tabular-nums; }
.step-docs { margin-top: 4px; font-size: 0.85rem; }
.ent-procedure { color: var(--accent); }
@media (max-width: 760px) {
  .rc-row { grid-template-columns: 1fr; gap: 2px; }
  .rc-label { text-align: left; }
  .steps li { grid-template-columns: 1fr; gap: 0; }
}

/* phase 5: semantic search */
.mode-switch { font-size: 0.9rem; color: var(--muted); }
.mode-switch a[aria-current] { font-weight: 600; color: var(--text); text-decoration: none; }
.match { font: 0.72rem var(--sans); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; margin-left: 6px; color: var(--muted); white-space: nowrap; }
.match-semantic { border-color: var(--accent); color: var(--accent); }
.match-both { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.similar-passages { padding-left: 1.4em; }
.similar-passages li { margin-bottom: 10px; }
.similar-passages .passage { margin: 2px 0 0; color: var(--muted); }

/* phase 4: questions, effects, Länder */
.viz-root { --q1: #86b6ef; --q2: #5598e7; --q3: #2a78d6; --q4: #1c5cab; --q5: #0d366b; --q-ink-light: #0b0b0b; --q-ink-dark: #ffffff; }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .viz-root { --q1: #184f95; --q2: #256abf; --q3: #3987e5; --q4: #6da7ec; --q5: #9ec5f4; --q-ink-light: #ffffff; --q-ink-dark: #0b0b0b; }
}
:root[data-theme="dark"] .viz-root { --q1: #184f95; --q2: #256abf; --q3: #3987e5; --q4: #6da7ec; --q5: #9ec5f4; --q-ink-light: #ffffff; --q-ink-dark: #0b0b0b; }
table.heat { width: auto; border-collapse: separate; border-spacing: 2px; }
table.heat th, table.heat td { border-bottom: 0; }
table.heat td { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; border-radius: 3px; }
table.heat td.zero { background: transparent; }
table.heat td.q1 { background: var(--q1); color: var(--q-ink-light); } table.heat td.q2 { background: var(--q2); color: var(--q-ink-light); }
table.heat td.q3 { background: var(--q3); color: var(--q-ink-dark); } table.heat td.q4 { background: var(--q4); color: var(--q-ink-dark); }
table.heat td.q5 { background: var(--q5); color: var(--q-ink-dark); }
table.heat td.total { font-weight: 600; }
table.heat thead th { white-space: nowrap; font-size: 0.85rem; }
table.heat caption { text-align: left; caption-side: bottom; padding-top: 6px; }
.timeline .milestone, .effects-chart .milestone { stroke: var(--viz-muted); stroke-width: 1; outline: none; }
.milestone-key { background: var(--viz-muted); height: 1px; }
.effects-chart { display: block; font: 12px var(--sans); }
.effects-chart .grid { stroke: var(--viz-grid); }
.effects-chart .baseline { stroke: var(--viz-axis); }
.effects-chart .tick { fill: var(--viz-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.effects-chart .bar-label { fill: var(--text); font-size: 12px; font-weight: 600; }
.effects-chart .milestone-label { fill: var(--viz-ink-2); font-size: 11px; }
.effects-chart .hit { fill: transparent; }
.effects-chart .mark { outline: none; }
.effects-chart .mark:hover .bar, .effects-chart .mark:focus .bar { filter: brightness(1.15); }
.effects-figure { margin: 16px 0 28px; }
.effects-figure figcaption { margin-bottom: 6px; }
.tilemap { display: grid; grid-template-columns: repeat(5, minmax(56px, 104px)); grid-auto-rows: 72px; gap: 4px; margin: 16px 0 24px; }
.tile { border-radius: 6px; padding: 6px 8px; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; outline-offset: 2px; }
.tile .abbr { font-weight: 700; font-size: 1.05rem; }
.tile .name { font-size: 0.72rem; line-height: 1.2; }
.tile-s1 { background: var(--series-1); color: #ffffff; } .tile-s2 { background: var(--series-2); color: #0b0b0b; }
.tile-s3 { background: var(--series-3); color: #0b0b0b; } .tile-neutral { background: var(--neutral); color: var(--text); }
@media (max-width: 760px) { .tilemap { grid-template-columns: repeat(5, 1fr); grid-auto-rows: 60px; } .tile .name { display: none; } }
.timeline .milestone-num { fill: var(--viz-ink-2); font-size: 10px; font-weight: 600; }
/* Wide charts keep a readable text size on phones and scroll sideways instead of shrinking. */
.viz-scroll > svg.effects-chart, .viz-scroll > svg.strip { min-width: 680px; }

/* navigation: the research questions first, the lists under "Browse" */
.browse { position: relative; }
.browse summary { list-style: none; cursor: pointer; color: var(--muted); }
.browse summary::-webkit-details-marker { display: none; }
.browse summary::after { content: " ▾"; font-size: 0.8em; }
.browse summary[aria-current] { color: var(--text); font-weight: 600; }
.browse .menu { position: absolute; top: calc(100% + 8px); left: -12px; z-index: 20; display: grid; min-width: 180px; padding: 6px 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 16px rgb(0 0 0 / 0.12); }
header.site nav .browse .menu a { padding: 5px 14px; color: var(--text); }
header.site nav .browse .menu a:hover, header.site nav .browse .menu a:focus { background: var(--accent-soft); }

/* first visit: the database download */
.loading { padding: 24px 0; max-width: 40em; }
.loading progress { width: 100%; max-width: 420px; height: 10px; accent-color: var(--accent); }

/* start page and about */
.summary { max-width: 46em; margin: 28px 0 8px; }
.summary h2 { margin-top: 0; }
.summary p { font: 1.05rem/1.6 var(--serif); margin: 0 0 0.7em; }
.prose { max-width: 46em; }
.prose li { margin-bottom: 6px; }
.pdf-link { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0; }
.permalink { color: var(--muted); }

/* static entity pages (e/<id>/) */
.static-note { background: var(--accent-soft); border-radius: var(--radius); padding: 10px 14px; }
footer.site { max-width: 1180px; margin: 0 auto; padding: 16px var(--gutter) 40px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }

/* bibliography */
.bib-tools { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin: 4px 0 8px; }
.bib-tools a[aria-current] { font-weight: 600; color: var(--text); text-decoration: none; }
.bib-tools .filter { width: 240px; margin: 0; }
.bib-group h2 { margin-bottom: 0.1em; }
.bib-group > p { margin-top: 0; }
.bib-entries { padding-left: 1.6em; }
.bib-entry { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.bib-url { overflow-wrap: anywhere; }
.bib-entry details { margin-top: 2px; }
.bib-entry summary { cursor: pointer; color: var(--muted); }
.bib-cites { margin: 4px 0; padding-left: 1.2em; font-size: 0.9rem; }
.bib-cites li { padding: 2px 0; }
.bib-cites .muted { font-family: var(--serif); }

/* person profile (abgeordnetenwatch, DIP) */
.profile { margin: 16px 0; }
.profile .meta-grid { max-width: 820px; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 2px 0; }
table.mandates td, table.mandates th { font-size: 0.9rem; }
table.mandates th[scope="row"] { white-space: nowrap; }
.source-note { margin-top: 10px; }
@media (max-width: 760px) {
  /* Mandates as blocks: four columns do not fit a phone. */
  table.mandates thead { display: none; }
  table.mandates tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
  table.mandates th, table.mandates td { display: block; border: 0; padding: 2px 0; }
  table.mandates td::before { content: attr(data-label) ": "; color: var(--muted); }
}
