.rb-page,
.rb-page * {
  scrollbar-width: thin;
  scrollbar-color: rgba(27, 94, 59, 0.34) rgba(27, 94, 59, 0.08);
}

.rb-page *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.rb-page *::-webkit-scrollbar-track {
  background: rgba(27, 94, 59, 0.08);
  border-radius: 999px;
}

.rb-page *::-webkit-scrollbar-thumb {
  background: rgba(27, 94, 59, 0.28);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.rb-page *::-webkit-scrollbar-thumb:hover {
  background: rgba(27, 94, 59, 0.42);
}

.rb-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 0 42px;
}

.rb-head {
  padding: 0;
  margin-bottom: 24px;
}

.rb-head-main {
  display: flex;
  width: 100%;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid rgba(27, 94, 59, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 247, 0.98));
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.06);
}

.rb-head-copy {
  flex: 1 1 460px;
  min-width: min(100%, 320px);
}

.rb-head .section-title.tool-title {
  margin: 0 !important;
  padding-top: 0.15rem;
}

.rb-head-intro {
  max-width: 52rem;
  margin: 0.45rem 0 0;
  color: #4d6157;
  font-size: 0.98rem;
  line-height: 1.55;
}

.rb-search-panel {
  flex: 0 1 420px;
  min-width: min(100%, 280px);
  padding: 0.9rem 0.95rem 0.85rem;
  border: 1px solid rgba(27, 94, 59, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.rb-search {
  min-width: 0;
}

.rb-search-input {
  width: 100%;
  min-height: 52px;
  padding: 0.84rem 1rem 0.8rem;
  border: 1px solid rgba(27, 94, 59, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.64) inset;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.rb-search-input::placeholder {
  color: rgba(32, 44, 37, 0.55);
}

.rb-search-input:hover {
  border-color: rgba(27, 94, 59, 0.28);
  background: rgba(255, 255, 255, 0.9);
}

.rb-search-input:focus-visible {
  outline: 3px solid #0f766e;
  outline-offset: 2px;
  border-color: rgba(11, 92, 66, 0.52);
  background: #fff;
}

.rb-search-hint {
  margin: 0.55rem 0 0;
  color: #64766d;
  font-size: 0.82rem;
  line-height: 1.4;
}

.rb-controls {
  position: relative;
  min-width: 146px;
  padding: 0.7rem 0.75rem 0.75rem;
  border: 1px solid rgba(27, 94, 59, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 247, 0.98));
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
}

.rb-controls::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  bottom: 1.22rem;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  pointer-events: none;
  opacity: 0.8;
}

.rb-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rb-select {
  width: 100%;
  min-height: 42px;
  padding: 0 2.5rem 0 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid rgba(27, 94, 59, 0.18);
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.rb-select:focus-visible {
  outline: 3px solid #0f766e;
  outline-offset: 2px;
  border-color: rgba(27, 94, 59, 0.45);
}

.rb-status {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 0.95rem;
}

.rb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.rb-layout:has(.rb-timeline:not([hidden])) {
  grid-template-columns: minmax(0, 104px) minmax(0, 1fr);
}

.rb-timeline[hidden] {
  display: none;
}

.rb-timeline {
  position: sticky;
  top: 96px;
  align-self: start;
  height: max-content;
  min-width: 0;
}

.rb-timeline-sticky {
  position: static;
}

.rb-timeline-title {
  margin: 0 0 10px;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #5c6e64;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rb-timeline-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding-left: 12px;
  border-left: 1px solid rgba(27, 94, 59, 0.14);
  max-height: calc(100vh - 168px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.rb-timeline-link {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 1px;
  padding: 0.35rem 0.3rem 0.35rem 0.3rem;
  text-decoration: none;
  color: rgba(21, 63, 42, 0.72);
  transition: color var(--dur-quick) var(--ease), transform var(--dur-quick) var(--ease);
}

.rb-timeline-link::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e4eee7;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(27, 94, 59, 0.12);
  transform: translateY(-50%);
  transition: background var(--dur-quick) var(--ease), transform var(--dur-quick) var(--ease), box-shadow var(--dur-quick) var(--ease);
}

.rb-timeline-link.is-active {
  color: #153f2a;
  transform: translateX(1px);
}

.rb-timeline-link.is-active::before {
  background: #10b981;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.16);
}

.rb-timeline-link:hover .rb-timeline-year,
.rb-timeline-link:focus-visible .rb-timeline-year {
  color: var(--accent);
}

.rb-timeline-link:hover::before,
.rb-timeline-link:focus-visible::before {
  background: #10b981;
}

.rb-timeline-link:focus-visible {
  outline: 3px solid #0f766e;
  outline-offset: 4px;
  border-radius: 8px;
}

.rb-timeline-year {
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 0.96rem;
  line-height: 1;
  font-weight: 700;
}

.rb-timeline-month {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: lowercase;
}

.rb-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.rb-year-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0.2rem 0 0.1rem;
  color: var(--muted);
}

.rb-year-divider::before,
.rb-year-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(27, 94, 59, 0), rgba(27, 94, 59, 0.16), rgba(27, 94, 59, 0));
}

.rb-year-divider-label {
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(21, 63, 42, 0.72);
}

.rb-meeting-card {
  position: relative;
  width: 100%;
  min-width: 0;
  background: var(--card);
  border: 1px solid rgba(27, 94, 59, 0.12);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, .07);
  transition: box-shadow var(--dur-quick) var(--ease), transform var(--dur-quick) var(--ease);
  overflow: hidden;
  scroll-margin-top: 110px;
}

.rb-meeting-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #0f766e 45%, #d7efe3);
  opacity: 0.92;
}

.rb-meeting-card:hover {
  box-shadow: 0 20px 42px rgba(17, 24, 39, .1);
  transform: translateY(-2px);
}

.rb-meeting-card--empty {
  background: #f3f6f4;
  border-color: rgba(27, 94, 59, 0.08);
  color: #5c6e64;
}

.rb-empty-state {
  width: 100%;
  max-width: 480px;
  padding: 1.5rem 2rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-muted);
  box-shadow: 0 10px 28px rgba(25, 62, 46, 0.06);
  text-align: center;
}

.rb-empty-state p {
  margin: 0;
  max-width: 38rem;
  line-height: 1.55;
}

.rb-meeting-card--politiek {
  border-color: rgba(27, 94, 59, 0.2);
  box-shadow: 0 16px 36px rgba(27, 94, 59, .09);
}

.rb-meeting-card--politiek::before {
  background: linear-gradient(90deg, #10b981, #14b8a6 36%, #f59e0b 100%);
}

.rb-meeting-card--politiek .rb-date-link {
  color: #153f2a;
}

.rb-meeting-headline {
  padding: 1.25rem 1.45rem 0.3rem;
}

.rb-date-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rb-date-link {
  font-family: "Open Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.26rem;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}

.rb-date-link:hover {
  text-decoration: underline;
}

.rb-date-link:focus-visible {
  outline: 3px solid #0f766e;
  outline-offset: 2px;
  border-radius: 4px;
}

.rb-date-link--muted {
  pointer-events: none;
}

.rb-type-badge {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.14rem 0.52rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #4a5c52;
  background: #f8faf9;
}

.rb-type-badge--begroting {
  background: #fef3c7;
  color: #92400e;
  border-color: #f0d8a0;
}

.rb-meeting-title {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.rb-meeting-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 0.72rem 1.45rem 1.15rem;
}

.rb-meeting-bar--disabled {
  cursor: default;
}

.rb-meeting-top {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}

.rb-meeting-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  align-items: flex-end;
}

.rb-action-btn {
  border: 1px solid rgba(27, 94, 59, 0.14);
  background: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent, #0f766e);
  cursor: pointer;
  white-space: nowrap;
  padding: 0.48rem 0.8rem;
  min-height: 32px;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
  transition: background 0.15s, text-decoration-color 0.15s, border-color 0.15s, transform 0.15s;
  text-decoration: none;
}

.rb-action-btn:hover {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.28);
  transform: translateY(-1px);
}

.rb-action-btn:focus-visible,
.rb-item-toggle:focus-visible,
.rb-ris-link:focus-visible {
  outline: 3px solid #0f766e;
  outline-offset: 3px;
  border-radius: 10px;
}

.rb-chevron {
  display: inline-block;
  transition: transform 300ms var(--ease);
}

.rb-meeting-toggle[aria-expanded="true"] .rb-chevron {
  transform: rotate(180deg);
}

.rb-meeting-stats {
  margin-top: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.rb-stat-chip {
  border: 1px solid var(--line);
  background: #f7fbf8;
  border-radius: 999px;
  padding: 0.24rem 0.64rem;
  font-size: 0.78rem;
  line-height: 1.25;
  color: var(--text);
}

.rb-stat-chip--aangenomen {
  background: #e8f5e9;
  border-color: #b7dfbb;
  color: #2e7d32;
}

.rb-stat-chip--verworpen {
  background: #fce4ec;
  border-color: #efb4c6;
  color: #c62828;
}

.rb-stat-chip--ingetrokken {
  background: #f1f3f5;
  border-color: #c7ccd1;
  color: #4b5563;
}

/* Search hit highlights within meeting cards */
.rb-search-hits {
  list-style: none;
  margin: 6px 0 2px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rb-search-hit {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text);
  padding: 3px 8px;
  background: #fffde7;
  border-left: 3px solid #f9a825;
  border-radius: 0 4px 4px 0;
}

.rb-search-hit-type {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.rb-search-hit-title {
  color: var(--text);
}

.rb-badge--sm {
  font-size: 0.7rem;
  padding: 0.08rem 0.38rem;
  vertical-align: middle;
  margin-left: 4px;
}

.rb-lines {
  margin-top: 4px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

.rb-lines--empty {
  margin-top: 10px;
  font-weight: 600;
}

.rb-progress-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rb-progress-track {
  height: 5px;
  border-radius: 3px;
  background: #e2e8f0;
  flex: 1;
  overflow: hidden;
}

.rb-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), #10b981);
  transition: width var(--dur-quick) var(--ease);
}

.rb-progress-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  min-width: 3rem;
  text-align: right;
}

.rb-highlights {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(27, 94, 59, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdfc, #f5faf7);
}

.rb-highlight-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.rb-highlight-row + .rb-highlight-row {
  padding-top: 8px;
  border-top: 1px dashed rgba(27, 94, 59, 0.12);
}

.rb-highlight-title {
  flex: 1 1 320px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.rb-highlight-badge {
  align-self: center;
}

.rb-highlight-votes {
  align-self: center;
  font-size: 0.8rem;
}

.rb-datahint {
  margin-top: 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.rb-detail-wrap {
  overflow: hidden;
  max-height: 0;
  visibility: hidden;
  transition: max-height 300ms var(--ease), padding 300ms var(--ease), visibility 0s 300ms;
  padding: 0 1.45rem;
}

.rb-detail-wrap.is-open {
  max-height: 99999px;
  overflow: visible;
  visibility: visible;
  transition: max-height 300ms var(--ease), padding 300ms var(--ease), visibility 0s;
  padding: 0 1.45rem 1.25rem;
}

.rb-detail {
  border-top: 1px solid rgba(27, 94, 59, 0.1);
  padding-top: 0.8rem;
}

.rb-detail-item {
  border-bottom: 1px solid rgba(27, 94, 59, 0.08);
  padding: 1.15rem 0;
}

.rb-detail-item:first-child {
  padding-top: 0.8rem;
}

.rb-detail-item:last-child {
  border-bottom: 0;
}

.rb-item-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
}

.rb-item-top--static {
  justify-content: flex-start;
}

.rb-item-heading {
  margin: 0;
}

.rb-item-static {
  flex: 1 1 auto;
  min-width: 0;
}

.rb-item-main {
  flex: 1 1 auto;
  min-width: 0;
}

.rb-item-toggle {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(27, 94, 59, 0.16);
  border-radius: 999px;
  background: #f7faf8;
  padding: 0;
  margin: 2px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background var(--dur-quick) var(--ease), border-color var(--dur-quick) var(--ease), transform var(--dur-quick) var(--ease);
}

.rb-item-toggle:hover {
  background: #eef6f1;
  border-color: rgba(27, 94, 59, 0.28);
  transform: translateY(-1px);
}

.rb-item-chevron {
  display: inline-block;
  color: var(--accent);
  font-size: 0.92rem;
  line-height: 1;
  transition: transform 300ms var(--ease);
}

.rb-item-toggle[aria-expanded="true"] .rb-item-chevron {
  transform: rotate(180deg);
}

.rb-item-body {
  display: none;
  padding-top: 4px;
}

.rb-item-body.is-open {
  display: block;
}

.rb-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.rb-quality-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.rb-quality-dot--ok { background: #10b981; }
.rb-quality-dot--warn { background: #f59e0b; }
.rb-quality-dot--bad { background: #ef4444; }

.rb-item-title {
  font-family: "Open Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--text);
  margin: 0;
  line-height: 1.24;
}

.rb-item-title-link {
  text-decoration: none;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.15em;
}

.rb-item-title-link:hover {
  text-decoration: underline;
}

.rb-item-title-link:focus-visible {
  text-decoration: underline;
  outline: 3px solid #0f766e;
  outline-offset: 2px;
  border-radius: 4px;
}

.rb-item-meta {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 6px 0 10px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--muted);
}

.rb-meta-part {
  display: inline-flex;
  align-items: center;
}

.rb-meta-part--child {
  color: var(--muted);
  font-weight: 600;
  gap: 6px;
  flex-wrap: wrap;
}

.rb-meta-part + .rb-meta-part::before {
  content: "\00b7";
  margin: 0 8px;
  color: #8aa296;
}

.rb-votes {
  gap: 14px;
  flex-wrap: wrap;
}

.rb-vote-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.84rem;
  line-height: 1.2;
  font-weight: 600;
}

.rb-vote-item--voor { color: #065f46; }
.rb-vote-item--tegen { color: #9f1239; }
.rb-vote-item--onthouding { color: #64748b; }
.rb-vote-item--blanco,
.rb-vote-item--anders { color: #475569; }

.rb-votes .rb-vote-item + .rb-vote-item::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin-right: 14px;
  background: rgba(138, 162, 150, 0.3);
}

.rb-outcome-badge {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0.08rem 0.44rem;
  border-radius: 999px;
  border: 1px solid rgba(27, 94, 59, 0.1);
  background: rgba(246, 250, 247, 0.72);
  font-size: 0.7rem;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
}

.rb-outcome-badge--aangenomen {
  background: rgba(232, 245, 233, 0.7);
  border-color: rgba(183, 223, 187, 0.8);
  color: #2f6f35;
}

.rb-outcome-badge--verworpen {
  background: rgba(255, 228, 230, 0.7);
  border-color: rgba(254, 205, 211, 0.85);
  color: #a11b40;
}

.rb-outcome-badge--ingetrokken {
  background: rgba(241, 245, 249, 0.76);
  border-color: rgba(216, 224, 232, 0.82);
  color: #667788;
}

.rb-pane {
  margin: 8px 0 0 1rem;
  border: 1px solid rgba(27, 94, 59, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(251, 253, 252, 0.96), rgba(245, 250, 247, 0.9));
  padding: 0.92rem 1rem;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.03);
}

.rb-pane--raadsvoorstel {
  border-left: 3px solid rgba(16, 185, 129, 0.42);
}

.rb-pane--besluit {
  border-left: 3px solid rgba(148, 163, 184, 0.4);
}

.rb-pane-title {
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.rb-pane-text {
  color: #4d6157;
  font-size: 0.94rem;
  line-height: 1.6;
  overflow: visible;
  display: block;
}

/* ── 3-panel layout (samenvatting | beslispunten | fractie-uitslag) ── */
.rb-tripanel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 8px 0 0 1rem;
}

.rb-tripanel-col {
  border: 1px solid rgba(27, 94, 59, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(252, 254, 253, 0.98), rgba(244, 249, 246, 0.92));
  padding: 0.95rem 1rem;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.035);
}

.rb-tripanel-col--votes {
  border-left: 3px solid rgba(16, 185, 129, 0.42);
}

.rb-tripanel-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #5b6f66;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.rb-beslispunten {
  margin: 0;
  padding-left: 1.4rem;
  color: #4d6157;
  font-size: 0.9rem;
  line-height: 1.6;
}

.rb-beslispunten li {
  margin-bottom: 4px;
}

.rb-beslispunten li:last-child {
  margin-bottom: 0;
}

/* ── Fractie vote chips ── */
.rb-fractie-votes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rb-fv-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rb-fv-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rb-fv-group--voor .rb-fv-label { color: #065f46; }
.rb-fv-group--tegen .rb-fv-label { color: #9f1239; }

.rb-fv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rb-fv-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.22rem 0.56rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.rb-fv-chip--voor {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.rb-fv-chip--tegen {
  background: #ffe4e6;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.rb-fv-chip--onthouding {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.rb-fv-group--onthouding .rb-fv-label { color: #475569; }

.rb-fv-count {
  font-size: 0.68rem;
  color: #5c6e64;
}

.rb-fv-empty {
  font-size: 0.84rem;
  color: var(--muted);
  font-style: italic;
}

.rb-ris-link {
  font-size: 0.84rem;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

.rb-ris-link:hover { text-decoration: underline; }
.rb-ris-link::after { content: "\2197"; font-size: 0.74rem; }

.rb-ris-link--top {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rb-sublist-label {
  margin: 14px 0 7px 1rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(92, 112, 102, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rb-sublist {
  margin: 6px 0 0 1rem;
  padding: 0;
  list-style: none;
}

.rb-subitem {
  border: 1px solid rgba(27, 94, 59, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(252, 254, 253, 0.98), rgba(247, 250, 248, 0.92));
  padding: 0.8rem 0.9rem;
  margin-bottom: 10px;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.03);
}

.rb-subitem--motie {
  border-left: 2px solid rgba(139, 92, 246, 0.82);
}

.rb-subitem--amendement {
  border-left: 2px solid rgba(245, 158, 11, 0.82);
}

.rb-subitem-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.rb-subitem-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(15, 118, 110, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}

.rb-subitem-link:hover {
  text-decoration-color: currentColor;
  color: var(--accent, #0f766e);
}

.rb-subitem-link:focus-visible {
  outline: 3px solid #0f766e;
  outline-offset: 2px;
  border-radius: 4px;
}

.rb-subitem-text {
  margin-top: 6px;
  font-size: 0.88rem;
  color: #596c63;
  line-height: 1.5;
  overflow: visible;
  display: block;
}

.rb-hidden-count {
  list-style: none;
  padding: 4px 2px 0;
  font-size: 0.85rem;
  color: var(--rb-muted, #6b7280);
}

.rb-show-hidden-btn {
  background: none;
  border: none;
  color: var(--rb-link, #0F6D60);
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}

.rb-show-hidden-btn:hover {
  color: var(--rb-link-hover, #0a4f46);
}

.rb-show-hidden-btn:focus-visible {
  outline: 2px solid var(--rb-link, #0F6D60);
  outline-offset: 2px;
  border-radius: 4px;
}

.rb-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.18rem 0.56rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rb-badge--aangenomen,
.rb-badge--vastgesteld { background: #d1fae5; color: #065f46; }
.rb-badge--verworpen { background: #ffe4e6; color: #9f1239; }
.rb-badge--ingetrokken { background: #f1f5f9; color: #64748b; }
.rb-badge--aangehouden { background: #fef3c7; color: #92400e; }
.rb-badge--geen,
.rb-badge--onbekend { background: #f1f5f9; color: #64748b; }

.rb-skeleton-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
}

.rb-skeleton {
  background: #e2e8f0;
  border-radius: 4px;
  animation: rb-pulse 1.5s ease-in-out infinite;
}

.rb-skeleton.h1 { height: 20px; width: 45%; margin-bottom: 10px; }
.rb-skeleton.h2 { height: 14px; width: 28%; margin-bottom: 12px; }
.rb-skeleton.line { height: 10px; width: 100%; margin-top: 8px; }

.rb-loading-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 8px 0;
}

.rb-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: rb-spin 0.6s linear infinite;
}

@keyframes rb-spin { to { transform: rotate(360deg); } }
@keyframes rb-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .rb-timeline-link,
  .rb-timeline-link::before,
  .rb-meeting-card,
  .rb-progress-fill,
  .rb-detail-wrap,
  .rb-chevron,
  .rb-item-chevron,
  .rb-item-toggle,
  .rb-action-btn,
  .rb-subitem-link,
  .rb-spinner {
    transition: none !important;
    animation: none !important;
  }

  .rb-meeting-card:hover {
    transform: none;
  }
}

@media (max-width: 768px) {
  .rb-page {
    padding: 14px 0 32px;
  }

  .rb-head {
    margin-bottom: 18px;
  }

  .rb-head-main {
    gap: 14px;
    padding: 0.95rem;
    border-radius: 22px;
  }

  .rb-head-copy,
  .rb-search-panel {
    flex-basis: 100%;
    min-width: 0;
  }

  .rb-head-intro {
    max-width: none;
    font-size: 0.94rem;
    line-height: 1.48;
  }

  .rb-search-panel {
    padding: 0.78rem 0.82rem 0.8rem;
    border-radius: 18px;
  }

  .rb-search-input {
    min-height: 50px;
    padding: 0.78rem 0.92rem;
    border-radius: 16px;
    font-size: 0.98rem;
  }

  .rb-search-hint {
    margin-top: 0.48rem;
    font-size: 0.78rem;
  }

  .rb-status {
    margin-bottom: 10px;
    font-size: 0.9rem;
  }

  .rb-list {
    gap: 14px;
  }

  .rb-meeting-card {
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
  }

  .rb-meeting-headline {
    padding: 1rem 1rem 0.88rem;
    gap: 12px;
  }

  .rb-meeting-title {
    font-size: 1.05rem;
    line-height: 1.28;
  }

  .rb-meeting-top {
    gap: 10px;
  }

  .rb-date-wrap {
    gap: 8px;
  }

  .rb-meeting-stats {
    gap: 8px;
  }

  .rb-stat-chip {
    min-height: 34px;
    padding: 0.44rem 0.72rem;
    font-size: 0.8rem;
  }

  .rb-meeting-bar {
    padding: 0.72rem 1rem;
    gap: 10px;
    align-items: flex-start;
  }

  .rb-meeting-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .rb-action-btn {
    min-height: 42px;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    font-size: 0.9rem;
  }

  .rb-search-hits {
    padding: 0.82rem 1rem 0;
    gap: 8px;
  }

  .rb-search-hit {
    padding: 0.62rem 0.72rem;
    border-radius: 14px;
  }

  .rb-detail-wrap {
    padding: 0 1rem 1rem;
  }

  .rb-detail {
    gap: 12px;
  }

  .rb-detail-item {
    padding-top: 12px;
  }

  .rb-item-top {
    gap: 12px;
    align-items: flex-start;
  }

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

  .rb-item-heading {
    gap: 8px;
  }

  .rb-item-head {
    gap: 8px;
    align-items: flex-start;
  }

  .rb-item-title,
  .rb-item-title-link {
    font-size: 1.02rem;
    line-height: 1.35;
  }

  .rb-item-toggle {
    flex: 0 0 auto;
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .rb-item-meta {
    row-gap: 6px;
  }

  .rb-meta-part {
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .rb-votes {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .rb-vote-item {
    min-height: 30px;
    padding: 0.32rem 0.62rem;
    font-size: 0.82rem;
  }

  .rb-tripanel {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rb-tripanel-col {
    padding: 1rem 0.95rem 0.92rem;
    border-radius: 18px;
  }

  .rb-pane {
    padding: 1rem 0.95rem 0.92rem;
    border-radius: 18px;
  }

  .rb-pane-text,
  .rb-beslispunten {
    font-size: 0.95rem;
    line-height: 1.58;
  }

  .rb-fv-group {
    gap: 8px;
  }

  .rb-fv-chips {
    gap: 8px;
  }

  .rb-fv-chip {
    min-height: 30px;
    padding: 0.34rem 0.64rem;
    font-size: 0.82rem;
  }

  .rb-sublist-label {
    margin-top: 2px;
    margin-bottom: 10px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
  }

  .rb-sublist {
    gap: 10px;
  }

  .rb-subitem {
    padding: 0.95rem 0.95rem 0.9rem;
    border-radius: 18px;
  }

  .rb-subitem-title {
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .rb-subitem-text {
    font-size: 0.92rem;
    line-height: 1.55;
  }
}

@media (max-width: 640px) {
  .rb-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .rb-timeline {
    position: static;
    top: auto;
    height: auto;
  }

  .rb-timeline-sticky {
    position: static;
  }

  .rb-timeline-title {
    margin-bottom: 8px;
  }

  .rb-timeline-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 0;
    border-left: 0;
    max-height: none;
    overflow-x: clip;
    overflow-y: visible;
  }

  .rb-timeline-link {
    padding: 0.36rem 0.62rem 0.34rem;
    border: 1px solid rgba(27, 94, 59, 0.12);
    border-radius: 999px;
    background: #f6faf7;
  }

  .rb-timeline-link::before {
    display: none;
  }

  .rb-timeline-year {
    font-size: 0.95rem;
  }

  .rb-timeline-month {
    font-size: 0.72rem;
  }

  .rb-head {
    padding: 0;
  }

  .rb-head-main {
    gap: 12px;
    padding: 0.88rem;
  }

  .rb-search-panel {
    flex-basis: 100%;
    min-width: 0;
    padding: 0.72rem 0.74rem 0.76rem;
  }

  .rb-search {
    flex-basis: 100%;
  }

  .rb-search-input {
    min-height: 48px;
    padding: 0.74rem 0.86rem;
  }

  .rb-highlights {
    padding: 0.7rem 0.8rem;
  }

  .rb-meeting-headline,
  .rb-meeting-bar {
    padding-left: 0.88rem;
    padding-right: 0.88rem;
  }

  .rb-year-divider {
    margin-top: 0.35rem;
  }

  .rb-detail-wrap {
    padding-left: 0.88rem;
    padding-right: 0.88rem;
  }

  .rb-detail-wrap.is-open {
    padding: 0 0.88rem 0.92rem;
  }

  .rb-item-top {
    gap: 10px;
    align-items: flex-start;
  }

  .rb-item-heading {
    align-items: flex-start;
  }

  .rb-item-head {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .rb-item-title,
  .rb-item-title-link {
    font-size: 0.99rem;
  }

  .rb-item-meta {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .rb-meta-part {
    width: 100%;
  }

  .rb-meta-part + .rb-meta-part::before {
    display: none;
  }

  .rb-votes .rb-vote-item + .rb-vote-item::before {
    display: none;
  }

  .rb-votes {
    width: 100%;
    gap: 6px;
  }

  .rb-pane,
  .rb-sublist,
  .rb-sublist-label,
  .rb-tripanel {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .rb-page {
    padding: 10px 0 24px;
  }

  .rb-date-link {
    font-size: 1.02rem;
  }

  .rb-head-main {
    gap: 10px;
    padding: 0.78rem;
    border-radius: 18px;
  }

  .rb-head-intro {
    font-size: 0.88rem;
    line-height: 1.46;
  }

  .rb-search-panel {
    padding: 0.68rem 0.68rem 0.72rem;
    border-radius: 16px;
  }

  .rb-search-input {
    min-height: 46px;
    padding: 0.72rem 0.82rem;
    border-radius: 14px;
    font-size: 0.95rem;
  }

  .rb-search-hint {
    font-size: 0.74rem;
  }

  .rb-meeting-card {
    border-radius: 20px;
  }

  .rb-meeting-headline {
    padding: 0.88rem 0.82rem 0.74rem;
    gap: 10px;
  }

  .rb-meeting-title {
    font-size: 0.98rem;
    line-height: 1.3;
  }

  .rb-meeting-stats {
    gap: 6px;
  }

  .rb-stat-chip {
    min-height: 32px;
    padding: 0.38rem 0.64rem;
    font-size: 0.76rem;
  }

  .rb-meeting-bar {
    flex-direction: column;
    padding: 0.68rem 0.82rem;
    gap: 8px;
  }

  .rb-meeting-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .rb-action-btn {
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 0.68rem 0.82rem;
    font-size: 0.86rem;
  }

  .rb-badge {
    font-size: 0.65rem;
  }

  .rb-highlight-row {
    gap: 6px;
  }

  .rb-highlight-title {
    flex-basis: 100%;
    font-size: 0.88rem;
  }

  .rb-pane,
  .rb-sublist,
  .rb-sublist-label,
  .rb-tripanel {
    margin-left: 0;
  }

  .rb-tripanel {
    grid-template-columns: 1fr;
  }

  .rb-tripanel-col,
  .rb-pane,
  .rb-subitem {
    padding: 0.88rem 0.82rem 0.84rem;
    border-radius: 16px;
  }

  .rb-pane-text,
  .rb-beslispunten,
  .rb-subitem-text {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .rb-item-title,
  .rb-item-title-link,
  .rb-subitem-title {
    font-size: 0.94rem;
  }

  .rb-item-toggle {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .rb-vote-item,
  .rb-fv-chip {
    font-size: 0.78rem;
  }

  .rb-ris-link {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }
}
