/* ── Skip link (WCAG 2.4.1) ── */
.rbc-skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 10px 18px;
  background: #0f5f50;
  color: #fff;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.rbc-skip-link:focus {
  top: 0;
}

/* ── Page shell ── */
body.page-rbc {
  height: auto;
}

.rbc-page {
  max-width: 1060px;
  width: 100%;
  padding: 22px 16px 48px;
  font-family: "Source Sans 3", system-ui, sans-serif;
}

/* ── Shared card base ── */
.rbc-header-card,
.rbc-item {
  background: #fff;
  border: 1px solid rgba(27, 94, 59, 0.12);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06), 0 1px 2px rgba(17, 24, 39, 0.04);
}

/* ── Sticky search/filter header ── */
.rbc-header-card {
  display: grid;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 16px;
}

.rbc-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rbc-title {
  margin: 0;
  color: var(--muted, #486257);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.rbc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ── Hero stats ── */
.rbc-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rbc-hero-stats div {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 9px;
  border: 1px solid #d9e8df;
  border-radius: 8px;
  background: #f8fbf9;
}

.rbc-hero-stats strong {
  color: #0f5f50;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.rbc-hero-stats span {
  color: #5e7168;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ── Search + filter row ── */
.rbc-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.rbc-searchbox {
  flex: 1;
  min-width: 0;
}

.rbc-searchbox input {
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border: 1px solid #5f8572;
  border-radius: 10px;
  background: #fff;
  color: #12221a;
  font: inherit;
  font-size: 1rem;
}

.rbc-searchbox input:focus-visible {
  outline: 2px solid #3a9e7e;
  outline-offset: 1px;
  border-color: #3a9e7e;
}

.rbc-filter-item {
  flex-shrink: 0;
}

.rbc-filter-item select {
  min-height: 40px;
  padding: 0.5rem 0.6rem;
  border: 1px solid #5f8572;
  border-radius: 10px;
  background: #fff;
  color: #12221a;
  font: inherit;
  font-size: 0.92rem;
}

.rbc-filter-item select:focus-visible {
  outline: 2px solid #3a9e7e;
  outline-offset: 1px;
  border-color: #3a9e7e;
}

.rbc-review-filter {
  flex-shrink: 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.5rem 0.7rem;
  border: 1px solid #5f8572;
  border-radius: 10px;
  background: #fff;
  color: #12221a;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.rbc-review-filter input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #0f5f50;
}

.rbc-review-filter:focus-within {
  outline: 2px solid #3a9e7e;
  outline-offset: 1px;
  border-color: #3a9e7e;
}

/* ── Two-column layout (always — feature F: no layout mode switch) ── */
.rbc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 14px;
}

.rbc-side {
  min-width: 0;
  position: sticky;
  top: calc(var(--header-offset, 76px) + 12px);
  z-index: 30;
}

/* ── Year nav (archive sidebar) ── */
.rbc-year-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(27, 94, 59, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  overflow-x: auto;
  scrollbar-width: thin;
}

.rbc-year-nav-label {
  flex: 0 0 auto;
  margin-right: 2px;
  color: #526b60;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rbc-year-link {
  display: block;
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 1px solid #5f8572;
  border-radius: 8px;
  background: #f5f9f7;
  color: #1b5c46;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background 0.12s, border-color 0.12s;
}

.rbc-year-link:hover {
  background: #dff0e9;
  border-color: #4a7a62;
}

.rbc-year-link:focus-visible {
  outline: 2px solid #3a9e7e;
  outline-offset: 2px;
}

.rbc-year-link.is-active {
  background: #1b5e3b;
  border-color: #1b5e3b;
  color: #fff;
  font-weight: 700;
}

/* ── Search stats sidebar ── */
.rbc-search-stats {
  padding: 12px 14px;
  border: 1px solid rgba(27, 94, 59, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.05);
}

.rbc-ss-heading {
  margin: 0 0 10px;
  color: #2a4a3c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rbc-ss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.rbc-ss-metric {
  min-width: 0;
}

.rbc-ss-metric:first-child {
  grid-column: span 2;
}

.rbc-ss-label {
  display: block;
  color: #526b60;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rbc-ss-value {
  display: block;
  margin-top: 2px;
  color: #1a3028;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  overflow-wrap: anywhere;
}

.rbc-ss-groen .rbc-ss-label,
.rbc-ss-groen .rbc-ss-value { color: #145c2d; }
.rbc-ss-rood .rbc-ss-label,
.rbc-ss-rood .rbc-ss-value  { color: #9f1239; }

/* ── Results head ── */
.rbc-results-head {
  display: flex;
  justify-content: space-between;
  gap: 8px 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

#rbc-statusline {
  margin: 0;
  color: #51645b;
  font-size: 0.92rem;
}

.rbc-results-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

.rbc-reset {
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  border: 1px solid #5f8572;
  border-radius: 999px;
  background: #fff;
  color: #0b5c52;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
}

.rbc-reset:hover {
  background: #e8f4f0;
}

.rbc-reset:focus-visible {
  outline: 2px solid #3a9e7e;
  outline-offset: 2px;
}

/* ── Active filter indicator (feature D) ── */
/* Applied via JS as .rbc-filter--active on <input> and <select> */
.rbc-filter--active {
  border-color: #0f5f50 !important;
  background: #eef7f3 !important;
  box-shadow: inset 0 0 0 1px #0f5f50;
}

/* ── Explicit loading of older years ── */
.rbc-load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
}

.rbc-load-more {
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border: 1px solid #5f8572;
  border-radius: 999px;
  background: #fff;
  color: #0b5c52;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.rbc-load-more:hover {
  background: #e8f4f0;
}

.rbc-load-more:focus-visible {
  outline: 3px solid #3a9e7e;
  outline-offset: 2px;
}

/* ── Meeting group ── */
.rbc-results {
  display: grid;
  gap: 16px;
}

.rbc-meeting-group {
  scroll-margin-top: calc(var(--header-offset, 76px) + 130px);
}

/* Stronger meeting header (feature C) */
.rbc-meeting-header {
  display: flex;
  align-items: baseline;
  gap: 10px 16px;
  flex-wrap: wrap;
  padding: 10px 14px 10px 16px;
  border-left: 4px solid #1b5e3b;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, #eef6f1 0%, #f8fbf9 100%);
  margin-bottom: 10px;
}

.rbc-meeting-date {
  margin: 0;
  color: #0a1f15;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.rbc-meeting-date-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 0;
  color: inherit;
  text-decoration: none;
}

.rbc-meeting-date-link:hover {
  color: #0f5f43;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rbc-meeting-date-link:focus-visible {
  color: #0f5f43;
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: 2px solid #3a9e7e;
  outline-offset: 2px;
  border-radius: 2px;
}

.rbc-mh-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
}

.rbc-mh-types {
  color: #4d6158;
  font-size: 0.8rem;
}

.rbc-mh-res {
  display: flex;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.rbc-mh-groen { color: #145c2d; }
.rbc-mh-rood  { color: #9f1239; }

/* ── Items list ── */
.rbc-meeting-items {
  display: grid;
  gap: 7px;
}

/* ── Single item card ── */
.rbc-item {
  border-radius: 12px;
  overflow: hidden;
}

.rbc-item:hover {
  border-color: rgba(15, 118, 110, 0.28);
}

/* ── Details / summary ── */
.rbc-details {
  display: block;
}

.rbc-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: start;
  padding: 13px 10px 13px 16px;
  cursor: pointer;
  list-style: none;
  user-select: text;
}

.rbc-item-head--static {
  grid-template-columns: minmax(0, 1fr);
  cursor: default;
  user-select: auto;
}

.rbc-item-head::-webkit-details-marker {
  display: none;
}

.rbc-item-head:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px #3a9e7e;
  border-radius: 12px;
}

/* ── Two-column card layout ── */
.rbc-item-layout {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 10px 16px;
  align-items: start;
  min-width: 0;
}

.rbc-item-main {
  min-width: 0;
}

.rbc-item-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  padding-top: 1px;   /* optical align with title baseline */
}

.rbc-item-title {
  margin: 0;
  color: #0e1f17;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* ── Parent voorstel reference (moties / amendementen) ── */
.rbc-item-parent {
  margin: 5px 0 0;
  color: #4d6158;
  font-size: 0.82rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rbc-item-parent-label {
  font-weight: 700;
}

/* ── Nested children (moties / amendementen under parent voorstel) ── */
.rbc-item-children {
  display: grid;
  gap: 6px;
  margin: 8px 0 4px 16px;
  padding-left: 14px;
  border-left: 3px solid #c5ddd1;
}

.rbc-item-children .rbc-item {
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.05);
}

.rbc-item-summary {
  margin: 7px 0 0;
  color: #3d5047;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── Toggle chevron ── */
.rbc-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border: 1px solid #d0e0d8;
  border-radius: 50%;
  background: #f5f9f7;
  color: #2d6a5a;
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: transform 0.18s ease, background 0.12s;
}

.rbc-toggle-icon::after {
  content: 'v';
}

.rbc-item-head:hover .rbc-toggle-icon {
  background: #e4f0eb;
  border-color: #9fc8b8;
}

.rbc-details[open] .rbc-toggle-icon {
  transform: rotate(180deg);
  background: #ddf0e8;
  border-color: #7bbfa0;
}

/* ── Detail panel ── */
.rbc-item-detail {
  border-top: 1px solid rgba(27, 94, 59, 0.1);
  padding: 0 16px 16px;
  background: #f9fcfa;
}

.rbc-detail-section {
  padding-top: 14px;
  border-top: 1px solid #e2ece7;
}

.rbc-detail-section:first-child {
  border-top: none;
  padding-top: 14px;
}

.rbc-detail-label {
  margin: 0 0 8px;
  color: #3a5248;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rbc-beslispunten-single {
  margin: 0;
  color: #2e3f38;
  font-size: 0.9rem;
  line-height: 1.55;
}

.rbc-beslispunten-list {
  margin: 0;
  padding-left: 1.3em;
  color: #2e3f38;
  font-size: 0.9rem;
  line-height: 1.55;
}

.rbc-beslispunten-list li + li {
  margin-top: 5px;
}

/* ── Pills ── */
.rbc-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0.1rem 0.48rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #4d6158;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

/* Type pills — light label, no fill */
.rbc-pill--type-voorstel {
  border-color: #c4d6e8;
  color: #3a5c7a;
}

.rbc-pill--type-motie {
  border-color: #dfc9a0;
  color: #6b4800;
}

.rbc-pill--type-amendement {
  border-color: #cec0e0;
  color: #5c3490;
}

.rbc-pill--type-besluit {
  border-color: #b8d8d4;
  color: #0b5c52;
}

.rbc-pill--type-ceremonie,
.rbc-pill--type-ceremonieel {
  border-color: #c9d2c4;
  color: #526346;
}

.rbc-pill--type-benoeming {
  border-color: #c3c9d6;
  color: #3f4a63;
}

.rbc-pill--type-interpellatie {
  border-color: #d2b8a3;
  color: #74451f;
}

.rbc-pill--type-afdoeningsvoorstel {
  border-color: #b7d1c7;
  color: #245d4c;
}

/* Review-only contextlabel: het vragenuur is geen raadsbesluit, maar krijgt
 * wel een eigen, rustige herkenning als overzicht van mondelinge vragen. */
.rbc-pill--type-vragenuur {
  gap: 0.28rem;
  border-color: #9bcfc1;
  background: #edf8f4;
  color: #176354;
  box-shadow: 0 1px 0 rgba(23, 99, 84, 0.08);
}

/* Status pills — subtle fill, readable color */
.rbc-pill--aangenomen {
  border-color: #8dc4a2;
  background: #eef8f2;
  color: #145c2d;
}

.rbc-pill--verworpen {
  border-color: #d4899a;
  background: #fdf0f2;
  color: #9f1239;
}

.rbc-pill--ingetrokken,
.rbc-pill--aangehouden {
  border-color: #c4cdd6;
  background: #f2f4f6;
  color: #556070;
}

/* Vote pill — plain text, no border/background */
.rbc-pill--vote {
  gap: 2px;
  border-color: transparent;
  background: transparent;
  color: #4d6158;
  font-size: 0.8rem;
  padding-left: 0;
  padding-right: 0;
}

.rbc-vote-voor   { color: #1a6e38; font-weight: 700; }
.rbc-vote-tegen  { color: #b91c47; font-weight: 700; }
.rbc-vote-afwijkend,
.rbc-vote-blanco { color: #5b6b75; font-weight: 700; } /* 15-99j WP-D: schriftelijk/geheim */
.rbc-vote-bullet { color: #8fa899; font-weight: 400; }

/* Context date pill (zoek-modus) */
.rbc-pill--context {
  border-color: #d0ddd8;
  color: #526b60;
}

/* ── Data integrity notice ── */
.rbc-data-notice {
  margin: 0;
  padding: 6px 10px;
  border: 1px solid #e8c97a;
  border-radius: 8px;
  background: #fdf8e8;
  color: #6b4a00;
  font-size: 0.82rem;
}

/* ── Fractie unaniem badge ── */
.rbc-fractie-unaniem {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.28rem 0.65rem;
  border: 1px solid #79b88b;
  border-radius: 8px;
  background: #e8f5ed;
  color: #145c2d;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

/* ── Fractie grid ── */
.rbc-fractie-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.rbc-fractie-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 120px;
}

.rbc-fractie-col-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.rbc-fractie-heading {
  margin: 0 0 1px;
  color: #566b61;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rbc-fractie-heading--voor  { color: #145c2d; }
.rbc-fractie-heading--tegen { color: #9f1239; }

.rbc-fractie-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0.15rem 0.5rem;
  border: 1px solid #c8ded2;
  border-radius: 999px;
  background: #f4faf6;
  color: #1e3a2e;
  font-size: 0.78rem;
}

.rbc-fractie-chip strong { font-weight: 700; }

.rbc-fractie-chip--voor  { border-color: #79b88b; background: #e8f5ed; color: #145c2d; }
.rbc-fractie-chip--tegen { border-color: #e0a3ad; background: #fde9ec; color: #9f1239; }

.rbc-fractie-none { color: #9ca3af; font-size: 0.85rem; }

.rst-fractie-section .rbc-fractie-col {
  flex: 1 1 170px;
}

.rst-fractie-trigger {
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

.rst-fractie-trigger:hover {
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.16);
}

.rst-fractie-trigger:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}

.rst-fractie-trigger--active {
  border-color: #0f5f50;
  background: #dff0e9;
  box-shadow: 0 0 0 2px rgba(15, 95, 80, 0.18);
  color: #0d4f42;
}

.rst-person-panel {
  margin: 0.45rem 0 0.2rem;
  padding: 0.55rem 0.65rem 0.65rem;
  border: 1px solid #d6e7de;
  border-left: 3px solid #79b88b;
  border-radius: 8px;
  background: #f7fbf8;
}

.rst-person-panel[hidden] {
  display: none;
}

.rst-message {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.4;
}

.rst-message--small {
  margin-top: 0.35rem;
  font-size: 0.84rem;
}

.rst-person-group {
  margin: 0;
}

.rst-person-heading {
  margin: 0 0 0.4rem;
  color: #2d4b3d;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.rst-person-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.8rem, 1fr));
  gap: 0.28rem 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rst-person-name {
  display: block;
  min-width: 0;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #2f4239;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* ── Documents ── */
.rbc-docs-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rbc-doc-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.42rem 0.75rem;
  border: 1px solid #bdd4c8;
  border-radius: 8px;
  background: #fff;
  color: #0b5c52;
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rbc-doc-link::before {
  content: '↗';
  flex-shrink: 0;
  font-size: 0.8em;
  opacity: 0.65;
}

.rbc-doc-link:hover {
  background: #e8f4f0;
  border-color: #4a7a62;
}

.rbc-doc-link:focus-visible {
  outline: 2px solid #3a9e7e;
  outline-offset: 2px;
}

/* ── Back to top ── */
.rbc-back-top {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #0f5f50;
  border-radius: 999px;
  background: #0f5f50;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.18);
}

.rbc-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.rbc-back-top:hover {
  background: #0b4b40;
}

.rbc-back-top:focus-visible {
  outline: 3px solid #3a9e7e;
  outline-offset: 3px;
}

/* ── j/k navigatie highlight ── */
.rbc-item--nav {
  outline: 2px solid #3a9e7e;
  outline-offset: 2px;
  border-radius: 12px;
}

/* ── Empty state ── */
.rbc-empty {
  padding: 20px;
  border: 1px dashed #adc8bb;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #50635a;
  font-size: 0.92rem;
}

/* ── Responsive ── */

/* Below 600px: collapse card to single column (aside below main) */
@media (max-width: 600px) {
  .rbc-item-layout {
    grid-template-columns: 1fr;
  }

  .rbc-item-aside {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  /* Schriftelijke persoonsbenoemingen hebben een langere, driedelige uitslag.
     Geef die alleen op kleine schermen een eigen regel en laat de tekst
     afbreken in plaats van de kaartbreedte te overschrijden. */
  .rbc-pill--schriftelijk {
    flex-basis: 100%;
    flex-wrap: wrap;
    max-width: 100%;
    white-space: normal;
    font-size: 0.72rem;
  }

  .rbc-pill--schriftelijk .rbc-vote-voor,
  .rbc-pill--schriftelijk .rbc-vote-afwijkend,
  .rbc-pill--schriftelijk .rbc-vote-ongeldig {
    font-weight: 600;
  }

  .rst-fractie-section .rbc-fractie-grid {
    gap: 12px;
  }

  .rst-fractie-section .rbc-fractie-col {
    flex-basis: 100%;
  }

  /* 1.4.12 Text Spacing: op mobiel wrappen i.p.v. afknippen */
  .rbc-doc-link {
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
  }

  .rbc-item-parent {
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
  }
}

@media (max-width: 760px) {
  .rbc-layout {
    grid-template-columns: 1fr;
  }

  .rbc-side {
    top: calc(var(--header-offset, 76px) + 8px);
  }

  .rbc-year-nav {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .rbc-year-link {
    flex: 0 0 auto;
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .rbc-ss-metric:first-child {
    grid-column: span 1;
  }

  .rbc-search-row {
    flex-wrap: wrap;
  }

  .rbc-searchbox {
    flex: 1 1 100%;
    width: 100%;
  }

  .rbc-filter-item,
  .rbc-review-filter {
    flex: 1 1 calc(33% - 6px);
    min-width: 0;
  }

  .rbc-filter-item select {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .rbc-filter-item,
  .rbc-review-filter {
    flex: 1 1 100%;
  }
}

@media (max-width: 560px) {
  .rbc-page {
    padding: 14px 12px 36px;
  }

  .rbc-hero-stats div {
    padding: 4px 7px;
  }

  .rbc-hero-stats strong {
    font-size: 0.95rem;
  }

  .rbc-hero-stats span {
    font-size: 0.65rem;
  }

  .rbc-item-head {
    padding: 11px 8px 11px 14px;
  }
}

/* ── Reduced motion (WCAG 2.3.3) ── */
@media (prefers-reduced-motion: reduce) {
  .rbc-year-link,
  .rbc-item-head,
  .rbc-reset,
  .rbc-doc-link,
  .rst-fractie-trigger,
  .rbc-toggle-icon,
  .rbc-back-top {
    transition: none;
  }
}
