/* Uitspraken : zoeken en filteren (in de stijl van de site) */

.rs-page {
  padding-top: 28px;
  padding-bottom: 96px;
  color-scheme: dark;
}

.rs-page select,
.rs-page input { font: inherit; color: inherit; }

.rs-page mark {
  background: rgba(76, 157, 255, 0.22);
  color: var(--text);
  border-radius: 3px;
  padding: 0 2px;
  margin: 0 -1px;
  box-shadow: inset 0 -1px 0 rgba(76, 157, 255, 0.6);
}

.rs-page kbd {
  display: inline-block;
  padding: 1px 6px;
  font-family: var(--sans);
  font-size: 0.78em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
}

/* ---------- Zoekbalk ---------- */

.rs-search {
  position: relative;
  z-index: 5;
  margin: 0 0 28px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.55);
}

.rs-search-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.rs-search .eyebrow { margin: 0; }

.rs-tips { position: relative; font-size: 0.85rem; }
.rs-tips summary {
  list-style: none;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
  border-radius: 6px;
}
.rs-tips summary::-webkit-details-marker { display: none; }
.rs-tips summary::before {
  content: "?";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-strong);
  vertical-align: 1px;
}
.rs-tips summary:hover,
.rs-tips[open] summary { color: var(--text); }
.rs-tips ul {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
  width: min(420px, 80vw);
  margin: 0;
  padding: 16px 18px 16px 34px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  color: var(--text-muted);
  line-height: 1.6;
}
.rs-tips li + li { margin-top: 6px; }

.rs-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 56px;
  padding: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--fast), box-shadow var(--fast);
}
.rs-bar:focus-within {
  border-color: rgba(76, 157, 255, 0.55);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.rs-field { position: relative; flex: none; display: flex; }
.rs-field select,
.rs-select select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  border: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a0b4' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}
.rs-field select {
  height: 100%;
  min-height: 42px;
  padding: 0 34px 0 12px;
  border-right: 1px solid var(--border-strong);
  border-radius: 8px 0 0 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.rs-field select:hover { background-color: rgba(255, 255, 255, 0.03); }
.rs-page select option { background: var(--bg-elevated); color: var(--text); }

.rs-input {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 14px;
}
.rs-input > svg {
  width: 18px;
  height: 18px;
  color: var(--text-faint);
  flex: none;
}
.rs-input input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 0;
  outline: none;
  color: var(--text);
  font-size: 0.98rem;
}
.rs-input input::placeholder { color: var(--text-faint); }
.rs-input input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

.rs-clear {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.rs-clear[hidden] { display: none; }
.rs-clear svg { width: 16px; height: 16px; }
.rs-clear:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }

.rs-bar > .btn { height: auto; min-height: 42px; padding: 0 22px; flex: none; }

.rs-search-hint {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* Suggesties */
.rs-suggest {
  position: absolute;
  left: -6px;
  right: -86px;
  top: calc(100% + 12px);
  z-index: 30;
  margin: 0;
  padding: 8px;
  list-style: none;
  max-height: min(440px, 60vh);
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8);
}
.rs-suggest[hidden] { display: none; }
.rs-suggest-head {
  padding: 10px 10px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.rs-suggest-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.rs-suggest-opt.is-active { background: var(--accent-soft); color: var(--text); }
.rs-sg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rs-sg-search .rs-sg-main,
.rs-sg-facet .rs-sg-main { display: block; }
.rs-sg-main strong { color: var(--text); font-weight: 600; }
.rs-sg-icon svg { width: 16px; height: 16px; display: block; color: var(--text-faint); }
.rs-sg-kind {
  flex: none;
  min-width: 108px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.rs-sg-facet .rs-sg-main { color: var(--text); }
.rs-sg-count,
.rs-sg-date {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
}
.rs-sg-ecli { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent-strong); }
.rs-sg-title { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-suggest kbd { flex: none; font-size: 11px; }

/* ---------- Indeling ---------- */

.rs-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.is-nodata .rs-layout { grid-template-columns: minmax(0, 1fr); }
.is-nodata .rs-filters,
.is-nodata .rs-tools,
.is-nodata .rs-chips,
.is-nodata .rs-foot { display: none !important; }
.is-nodata .rs-toolbar {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.is-nodata .rs-search-hint { display: none; }

/* ---------- Filters ---------- */

.rs-filters {
  position: sticky;
  top: calc(var(--nav) + 16px);
  max-height: calc(100vh - var(--nav) - 32px);
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.rs-filters-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.rs-filters-head h2 {
  flex: 1;
  margin: 0;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: var(--display-track);
}

.rs-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
}
.rs-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.rs-link:disabled { color: var(--text-faint); cursor: default; text-decoration: none; }

.rs-drawer-close {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}
.rs-drawer-close svg { width: 18px; height: 18px; }

.rs-groups {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.rs-groups-empty { margin: 0; padding: 18px; color: var(--text-muted); font-size: 0.9rem; }

.rs-group { border-bottom: 1px solid var(--border); }
.rs-group:last-child { border-bottom: 0; }
.rs-group summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
  transition: background var(--fast);
}
.rs-group summary::-webkit-details-marker { display: none; }
.rs-group summary:hover { background: rgba(255, 255, 255, 0.025); }
.rs-group summary:focus-visible { outline-offset: -2px; }
.rs-group-title { flex: 1; }
.rs-group-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.rs-group-badge[hidden] { display: none; }
.rs-chev {
  width: 16px;
  height: 16px;
  color: var(--text-faint);
  transition: transform var(--mid) var(--ease);
}
.rs-group[open] > summary .rs-chev { transform: rotate(180deg); }

.rs-group-body { padding: 0 12px 14px; }
.rs-group fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

.rs-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 6px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--text-muted);
  transition: background var(--fast), color var(--fast);
}
.rs-check:hover { background: rgba(255, 255, 255, 0.035); color: var(--text); }
.rs-check.is-checked { color: var(--text); }
.rs-check.is-zero { opacity: 0.45; }
.rs-group:not(.is-all) .rs-check.is-extra:not(.is-checked) { display: none; }

.rs-check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: 5px;
  background: var(--bg-elevated) center / 12px no-repeat;
  cursor: pointer;
  transition: background-color var(--fast), border-color var(--fast);
}
.rs-check input:checked {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
}
.rs-radio input { border-radius: 50%; }
.rs-radio input:checked {
  background-image: none;
  box-shadow: inset 0 0 0 4px var(--bg-elevated);
}
.rs-check input:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.rs-check-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rs-check-count {
  flex: none;
  min-width: 26px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.rs-check-count:empty { display: none; }
.rs-check.is-checked .rs-check-count { background: var(--accent-soft); color: var(--accent-strong); }

.rs-more {
  margin: 6px 0 0 6px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.rs-more:hover { color: var(--text); }

.rs-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 6px 2px;
}
.rs-range[hidden] { display: none; }
.rs-range label { display: grid; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.rs-range input {
  width: 100%;
  height: 38px;
  padding: 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
}
.rs-range input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.rs-filters-foot { display: none; }
.rs-backdrop { display: none; }

/* ---------- Werkbalk ---------- */

.rs-results { min-width: 0; scroll-margin-top: calc(var(--nav) + 16px); }

.rs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  min-height: 44px;
}

.rs-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.rs-meta strong {
  font-family: "Sora", var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-right: 2px;
}
.rs-meta q { color: var(--text); font-weight: 600; quotes: "“" "”"; }
.rs-meta-sub {
  display: inline-block;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border-strong);
  font-size: 0.82rem;
  color: var(--text-faint);
}

.rs-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.rs-tool,
.rs-select,
.rs-view {
  display: inline-flex;
  align-items: center;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}
.rs-tool {
  gap: 8px;
  padding: 0 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--fast), color var(--fast);
}
.rs-tool svg { width: 16px; height: 16px; flex: none; }
.rs-tool:hover { border-color: var(--border-strong); color: var(--text); }
.rs-tool.is-done { border-color: rgba(51, 209, 122, 0.4); color: var(--ok); }

.rs-filter-toggle { display: none; }
.rs-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.rs-count[hidden] { display: none; }

.rs-select { padding-left: 12px; gap: 4px; }
.rs-select span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-faint);
  white-space: nowrap;
}
.rs-select select {
  height: 100%;
  padding: 0 34px 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.rs-select:focus-within { border-color: var(--accent); }
.rs-select select:focus-visible { outline: none; }

.rs-view { padding: 3px; gap: 2px; }
.rs-view button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
}
.rs-view button svg { width: 16px; height: 16px; }
.rs-view button:hover { color: var(--text); }
.rs-view button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-strong); }

/* Actieve filters */
.rs-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(14, 20, 34, 0.6);
}
.rs-chips[hidden] { display: none; }
.rs-chips-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.rs-chip-list { display: contents; list-style: none; margin: 0; padding: 0; }
.rs-chip-list li { display: contents; }
.rs-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  height: 32px;
  padding: 0 10px 0 12px;
  border: 1px solid rgba(76, 157, 255, 0.35);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--fast), border-color var(--fast);
}
.rs-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-chip svg { width: 14px; height: 14px; flex: none; color: var(--accent-strong); }
.rs-chip:hover { background: rgba(47, 140, 240, 0.24); border-color: var(--accent); }
.rs-clear-all { margin-left: auto; }

/* ---------- Resultaten ---------- */

.rs-list { display: grid; gap: 12px; }

.rs-item {
  position: relative;
  display: block;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.rs-item:hover,
.rs-item:focus-visible {
  border-color: rgba(76, 157, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -24px var(--accent-glow);
}

.rs-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.rs-item .ecli {
  margin-right: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
}

.rs-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.rs-badge-soft { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--text-faint); }

.rs-item h2 {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.rs-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin: 0 0 12px;
}
.rs-facts div { display: flex; flex-direction: column; min-width: 0; }
.rs-facts dt {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.rs-facts dd { margin: 0; font-size: 0.88rem; font-weight: 600; color: var(--text); }

.rs-item p { margin: 0; }
.rs-summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 78ch;
  line-height: 1.6;
}
.rs-found {
  margin-top: 10px !important;
  padding: 10px 14px;
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: rgba(47, 140, 240, 0.06);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 78ch;
}
.rs-found-label {
  display: block;
  margin-bottom: 2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.rs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.rs-tags li {
  padding: 2px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.rs-item-go {
  position: absolute;
  right: 24px;
  bottom: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-strong);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--fast), transform var(--mid) var(--ease);
}
.rs-item-go i { font-style: normal; }
.rs-item:hover .rs-item-go,
.rs-item:focus-visible .rs-item-go { opacity: 1; transform: none; }

.rs-compact-meta { display: none; }

/* Compacte weergave */
.rs-list.is-compact { gap: 8px; }
.rs-list.is-compact .rs-item { padding: 14px 18px; }
.rs-list.is-compact .rs-item-top { margin-bottom: 4px; }
.rs-list.is-compact h2 { font-size: 1.05rem; margin-bottom: 2px; font-family: var(--sans); font-weight: 600; }
.rs-list.is-compact .rs-facts,
.rs-list.is-compact .rs-found,
.rs-list.is-compact .rs-tags,
.rs-list.is-compact .rs-summary,
.rs-list.is-compact .rs-item-go { display: none; }
.rs-list.is-compact .rs-compact-meta {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-faint);
}
.rs-list.is-compact .rs-badge { height: 20px; font-size: 10px; }

/* Lege toestand */
.rs-empty {
  padding: 48px 24px;
  text-align: center;
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}
.rs-empty-lg { padding: 72px 24px; }
.rs-empty-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.rs-empty-icon svg { width: 30px; height: 30px; }
.rs-empty h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}
.rs-empty p { margin: 0 auto; max-width: 52ch; }
.rs-empty ul {
  display: inline-block;
  margin: 14px auto 0;
  padding-left: 20px;
  text-align: left;
  font-size: 0.92rem;
}
.rs-empty-actions { display: block; }
.rs-empty .btn-secondary { margin-top: 22px; height: 44px; font-size: 0.88rem; }
.rs-empty .rs-link { font-size: inherit; }

/* Paginering */
.rs-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.rs-foot:empty { display: none; }
.rs-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.rs-pager[hidden] { display: none; }
.rs-per[hidden] { display: none; }
.rs-pager button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rs-pager button svg { width: 16px; height: 16px; }
.rs-pager button:hover:not(:disabled),
.rs-pager button.is-on {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-soft);
}
.rs-pager button:disabled { opacity: 0.4; cursor: default; }
.rs-page-gap { padding: 0 4px; color: var(--text-faint); }

.rs-backlink { margin: 28px 0 0; font-size: 0.9rem; }

/* ---------- Responsief ---------- */

@media (max-width: 1100px) and (min-width: 981px) {
  .rs-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 22px; }
  .rs-share-label { display: none; }
}

@media (max-width: 980px) {
  .rs-layout { grid-template-columns: minmax(0, 1fr); }
  .rs-filter-toggle { display: inline-flex; }

  .rs-filters {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 310;
    width: min(400px, 100%);
    max-height: none;
    border-radius: 0;
    border-width: 0 1px 0 0;
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform var(--mid) var(--ease), visibility 0s linear var(--mid);
    box-shadow: 30px 0 80px -30px rgba(0, 0, 0, 0.8);
  }
  .rs-filters.is-open {
    transform: none;
    visibility: visible;
    transition: transform var(--mid) var(--ease), visibility 0s;
  }
  .rs-filters-head { padding: 14px 16px; }
  .rs-drawer-close { display: grid; }
  .rs-groups { flex: 1; }
  .rs-filters-foot {
    display: block;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--bg-card);
  }
  .rs-filters-foot .btn { width: 100%; }
  .rs-check { padding: 10px 6px; }

  .rs-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(2, 4, 8, 0.66);
    backdrop-filter: blur(3px);
  }
  .rs-backdrop[hidden] { display: none; }
  html.rs-lock, html.rs-lock body { overflow: hidden; }
}

@media (max-width: 720px) {
  .rs-search { padding: 18px; border-radius: var(--radius-md); }
  .rs-bar { flex-wrap: wrap; padding: 8px; gap: 8px; }
  .rs-field { width: 100%; }
  .rs-field select {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--border-strong);
    border-radius: 6px;
    min-height: 38px;
  }
  .rs-input { flex-basis: 100%; padding: 0 4px 0 8px; }
  .rs-bar > .btn { width: 100%; min-height: 44px; }
  .rs-suggest { left: -8px; right: -8px; }
  .rs-sg-kind { min-width: 0; }
  .rs-tips ul { right: -8px; }

  .rs-toolbar { align-items: flex-start; flex-direction: column; }
  .rs-tools { width: 100%; }
  .rs-tools .rs-select { flex: 1 1 100%; min-width: 0; order: 5; }
  .rs-tools .rs-select select { flex: 1; min-width: 0; }
  .rs-tools .rs-select { padding-left: 0; }
  .rs-tools .rs-select > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .rs-tools .rs-select select { padding-left: 12px; border-radius: var(--radius-sm); }
  .rs-share-label { display: none; }
  .rs-meta-sub { display: block; margin: 2px 0 0; padding: 0; border: 0; }

  .rs-chips { padding: 10px 12px; }
  .rs-clear-all { margin-left: 0; }

  .rs-item { padding: 18px; }
  .rs-facts { gap: 6px 20px; }
  .rs-item-go { display: none; }
  .rs-page-nav span { display: none; }
  .rs-foot { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .rs-item, .rs-filters, .rs-chev, .rs-item-go { transition: none; }
  .rs-item:hover { transform: none; }
}

/* Detail */
.rs-detail { padding-top: calc(var(--nav) + 28px); }

.rs-back {
  margin: 0 0 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.rs-back a { color: var(--text-muted); }
.rs-back a:hover { color: var(--accent-strong); }

.rs-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 40px;
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.55);
}

.rs-ecli {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-strong);
}

#detail h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
  margin: 0 0 28px;
  font-weight: 700;
}

.rs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 28px;
}

.rs-table th,
.rs-table td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.95rem;
}

.rs-table th {
  width: 180px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.rs-block { margin: 28px 0 0; }

.rs-block h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--text);
}

.rs-block .paper {
  white-space: pre-wrap;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  line-height: 1.65;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .rs-table th { width: 120px; }
  .rs-detail-card { padding: 20px; }
}
